Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
funky-eyes committed Aug 1, 2024
1 parent 64e2d2c commit 940b0c6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.junit.Test;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownLatch;
Expand All @@ -41,7 +42,7 @@ public class RpcCommandHandlerTest {

private static RemotingContext remotingContext = null;

private static final List<RemotingContext> remotingContextList = new ArrayList<>();
private static final List<RemotingContext> remotingContextList = Collections.synchronizedList(new ArrayList<>());

private static final CountDownLatch countDownLatch = new CountDownLatch(2);

Expand Down

0 comments on commit 940b0c6

Please sign in to comment.