Skip to content

Commit

Permalink
Change CopyOnWriteArrayList to regular list in DubboProtocol (#4056)
Browse files Browse the repository at this point in the history
  • Loading branch information
wavesZh authored and kun-song committed May 15, 2019
1 parent 0b380e3 commit 789775b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.CopyOnWriteArrayList;

import static org.apache.dubbo.common.constants.CommonConstants.GROUP_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.INTERFACE_KEY;
Expand Down Expand Up @@ -544,7 +543,7 @@ private void batchClientRefIncr(List<ReferenceCountExchangeClient> referenceCoun
* @return
*/
private List<ReferenceCountExchangeClient> buildReferenceCountExchangeClientList(URL url, int connectNum) {
List<ReferenceCountExchangeClient> clients = new CopyOnWriteArrayList<>();
List<ReferenceCountExchangeClient> clients = new ArrayList<>();

for (int i = 0; i < connectNum; i++) {
clients.add(buildReferenceCountExchangeClient(url));
Expand Down

0 comments on commit 789775b

Please sign in to comment.