Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 7344490

Browse files
committed
Synchronize suppliers list
1 parent 534e099 commit 7344490

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proteus-client/src/main/java/io/netifi/proteus/DefaultProteusBrokerService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ public DefaultProteusBrokerService(
102102
this.requestHandlingRSocket = new UnwrappingRSocket(requestHandlingRSocket);
103103
this.group = group;
104104
this.destinationNameFactory = destinationNameFactory;
105-
this.members = new ArrayList<>();
106-
this.suppliers = new ArrayList<>();
105+
this.members = Collections.synchronizedList(new ArrayList<>());
106+
this.suppliers = Collections.synchronizedList(new ArrayList<>());
107107
this.clientTransportFactory = clientTransportFactory;
108108
this.poolSize = poolSize;
109109
this.selectRefresh = poolSize / 2;

0 commit comments

Comments
 (0)