Skip to content

Commit

Permalink
fix: use concurrent hashmap
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Serra <ma.serra@teamsystem.com>
  • Loading branch information
manuelserradev committed Feb 20, 2024
1 parent 92ccca5 commit 7eae5a5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
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.
Expand Down Expand Up @@ -60,7 +60,7 @@ public class ActorStateManager {
this.stateProvider = stateProvider;
this.actorTypeName = actorTypeName;
this.actorId = actorId;
this.stateChangeTracker = new HashMap<>();
this.stateChangeTracker = new ConcurrentHashMap<>();
}

/**
Expand Down

0 comments on commit 7eae5a5

Please sign in to comment.