Skip to content

Commit bb771c3

Browse files
committed
changed from synchronizedMap to Map, as synchronization is not needed in workflow code
1 parent 54fcd36 commit bb771c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/io/temporal/samples/taskinteraction/TaskService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
public class TaskService<R> {
3434

35-
private final Map<String, Task> tasks = Collections.synchronizedMap(new HashMap<>());
35+
private final Map<String, Task> tasks = new HashMap<>();
3636
private final Map<String, CompletablePromise<R>> pendingPromises =
3737
Collections.synchronizedMap(new HashMap<>());
3838

0 commit comments

Comments
 (0)