We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b5c130 commit ecc8546Copy full SHA for ecc8546
sdk-actors/src/main/java/io/dapr/actors/runtime/ActorStateManager.java
@@ -18,10 +18,10 @@
18
import reactor.core.publisher.Mono;
19
20
import java.util.ArrayList;
21
-import java.util.HashMap;
22
import java.util.List;
23
import java.util.Map;
24
import java.util.NoSuchElementException;
+import java.util.concurrent.ConcurrentHashMap;
25
26
/**
27
* Manages state changes of a given Actor instance.
@@ -60,7 +60,7 @@ public class ActorStateManager {
60
this.stateProvider = stateProvider;
61
this.actorTypeName = actorTypeName;
62
this.actorId = actorId;
63
- this.stateChangeTracker = new HashMap<>();
+ this.stateChangeTracker = new ConcurrentHashMap<>();
64
}
65
66
0 commit comments