fix: use concurrent hashmap (#1017)

Signed-off-by: Manuel Serra <ma.serra@teamsystem.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
This commit is contained in:
Manuel Serra 2024-02-20 21:11:17 +01:00 committed by GitHub
parent 0b5c130293
commit ecc85461ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -18,10 +18,10 @@ import io.dapr.utils.TypeRef;
import reactor.core.publisher.Mono;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.concurrent.ConcurrentHashMap;
/**
* Manages state changes of a given Actor instance.
@ -60,7 +60,7 @@ public class ActorStateManager {
this.stateProvider = stateProvider;
this.actorTypeName = actorTypeName;
this.actorId = actorId;
this.stateChangeTracker = new HashMap<>();
this.stateChangeTracker = new ConcurrentHashMap<>();
}
/**