Skip to content

Commit

Permalink
TargetKeys Map changed to ConcurrentHashMap (#7602)
Browse files Browse the repository at this point in the history
Signed-off-by: David Kral <[email protected]>
  • Loading branch information
Verdent authored Sep 27, 2023
1 parent 19d43fb commit 72214e1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2022 Oracle and/or its affiliates.
* Copyright (c) 2018, 2023 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -25,6 +25,7 @@
import java.util.TreeMap;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.ConcurrentHashMap;

import io.helidon.config.Config;
import io.helidon.config.metadata.Configured;
Expand Down Expand Up @@ -78,7 +79,7 @@ public final class HttpSignProvider implements AuthenticationProvider, OutboundS
private final Map<String, InboundClientDefinition> inboundKeys;
private final OutboundConfig outboundConfig;
// cache of target name to a signature configuration for outbound calls
private final Map<String, OutboundTargetDefinition> targetKeys = new HashMap<>();
private final Map<String, OutboundTargetDefinition> targetKeys = new ConcurrentHashMap<>();
private final boolean backwardCompatibleEol;

private HttpSignProvider(Builder builder) {
Expand Down

0 comments on commit 72214e1

Please sign in to comment.