Skip to content

Commit

Permalink
chore: fix race with events tests
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <[email protected]>
  • Loading branch information
toddbaert committed Aug 4, 2023
1 parent 4972291 commit 9d22159
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 9d22159

Please sign in to comment.