File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/iexec/commons/poco/chain Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3838
3939import java .io .IOException ;
4040import java .math .BigInteger ;
41- import java .util .HashMap ;
4241import java .util .Map ;
4342import java .util .Optional ;
43+ import java .util .concurrent .ConcurrentHashMap ;
4444
4545import static com .iexec .commons .poco .chain .Web3jAbstractService .toBigInt ;
4646import static com .iexec .commons .poco .chain .Web3jAbstractService .toEthereumAddress ;
@@ -71,8 +71,8 @@ public abstract class IexecHubAbstractService {
7171 private long maxNbOfPeriodsForConsensus = -1 ;
7272 private final long retryDelay ;// ms
7373 private final int maxRetries ;
74- private final Map <Long , ChainCategory > categories = new HashMap <>();
75- private final Map <String , TaskDescription > taskDescriptions = new HashMap <>();
74+ private final Map <Long , ChainCategory > categories = new ConcurrentHashMap <>();
75+ private final Map <String , TaskDescription > taskDescriptions = new ConcurrentHashMap <>();
7676
7777 protected IexecHubAbstractService (
7878 Credentials credentials ,
You can’t perform that action at this time.
0 commit comments