Skip to content

Commit ecc8546

Browse files
fix: use concurrent hashmap (#1017)
Signed-off-by: Manuel Serra <ma.serra@teamsystem.com> Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
1 parent 0b5c130 commit ecc8546

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk-actors/src/main/java/io/dapr/actors/runtime/ActorStateManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
import reactor.core.publisher.Mono;
1919

2020
import java.util.ArrayList;
21-
import java.util.HashMap;
2221
import java.util.List;
2322
import java.util.Map;
2423
import java.util.NoSuchElementException;
24+
import java.util.concurrent.ConcurrentHashMap;
2525

2626
/**
2727
* Manages state changes of a given Actor instance.
@@ -60,7 +60,7 @@ public class ActorStateManager {
6060
this.stateProvider = stateProvider;
6161
this.actorTypeName = actorTypeName;
6262
this.actorId = actorId;
63-
this.stateChangeTracker = new HashMap<>();
63+
this.stateChangeTracker = new ConcurrentHashMap<>();
6464
}
6565

6666
/**

0 commit comments

Comments
 (0)