提交 9f59eddd 编写于 作者: 张乐 提交者: GitHub

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

fix concurrent modification exception for release message scanner
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册