Skip to content

Commit

Permalink
fix: use concurrent hashmap (dapr#1017)
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Serra <ma.serra@teamsystem.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
  • Loading branch information
nitroin and artursouza committed Feb 20, 2024
1 parent 0b5c130 commit ecc8546
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 ecc8546

Please sign in to comment.