jack15083 commented on issue #1100:
URL: https://github.com/apache/dubbo-go/issues/1100#issuecomment-806524904
> pls check pr #1092
> ```
> // Notify monitor changes from registry,and update the cacheServices
> func (dir *RegistryDirectory) Notify(event *registry.ServiceEvent) {
> if event == nil {
> return
> }
> go dir.refreshInvokers(event)
> }
> ```
>
> 此处的Notify函数直接启用协程处理,个人感觉不是太恰当,尤其对于同一地址和端口的同一interface,上线和下线是应该需要考虑时序的。
这段代码可能是有问题的,有可能先执行的上线通知后执行的下线通知,这样的话就可能会导致consumer调用provider服务失败
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]