Skip to content

Commit

Permalink
Explicitly set _nonceToAlice to ConcurrentHashMap because Map doesn't…
Browse files Browse the repository at this point in the history
… have putIfAbsent in Java 7
  • Loading branch information
eyedeekay committed Aug 27, 2022
1 parent 03d9681 commit c32b329
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class IntroductionManager {
/** map of relay tag to PeerState who have given us introduction tags */
private final Map<Long, PeerState> _inbound;
/** map of relay nonce to alice PeerState who requested it */
private final Map<Long, PeerState2> _nonceToAlice;
private final ConcurrentHashMap<Long, PeerState2> _nonceToAlice;
private final Set<InetAddress> _recentHolePunches;
private long _lastHolePunchClean;

Expand Down

0 comments on commit c32b329

Please sign in to comment.