1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

Fix ConcurrentModificationException while EventDispatcher.run after 'received push data' from Nacos

This commit is contained in:
wangmin 2020-12-08 20:04:19 +08:00
parent 625b44e185
commit 770382b36a

View File

@ -237,9 +237,6 @@ public class DubboServiceMetadataRepository
dispatchEvent(new SubscribedServicesChangedEvent(this, oldSubscribedServices, dispatchEvent(new SubscribedServicesChangedEvent(this, oldSubscribedServices,
newSubscribedServices)); newSubscribedServices));
// clear old one, help GC
oldSubscribedServices.clear();
return newSubscribedServices.stream(); return newSubscribedServices.stream();
} }