Commit 9f59eddd by 张乐 Committed by GitHub

Merge pull request #365 from nobodyiam/concurrent-modification-fix

fix concurrent modification exception for release message scanner
parents d21a6a19 c45a75f4
......@@ -38,7 +38,7 @@ public class ReleaseMessageScanner implements InitializingBean {
private long maxIdScanned;
public ReleaseMessageScanner() {
listeners = Lists.newLinkedList();
listeners = Lists.newCopyOnWriteArrayList();
executorService = Executors.newScheduledThreadPool(1, ApolloThreadFactory
.create("ReleaseMessageScanner", true));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment