Skip to content

Commit

Permalink
chore: fix race with events tests (#545)
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
  • Loading branch information
toddbaert authored Aug 4, 2023
1 parent 4972291 commit 8789f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/openfeature/sdk/EventSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class EventSupport {
// we use a v4 uuid as a "placeholder" for anonymous clients, since
// ConcurrentHashMap doesn't support nulls
private static final String defaultClientUuid = UUID.randomUUID().toString();
private static final ExecutorService taskExecutor = Executors.newCachedThreadPool();
private final ExecutorService taskExecutor = Executors.newCachedThreadPool();
private final Map<String, HandlerStore> handlerStores = new ConcurrentHashMap<>();
private final HandlerStore globalHandlerStore = new HandlerStore();

Expand Down

0 comments on commit 8789f90

Please sign in to comment.