laywin commented on issue #14470:
URL: https://github.com/apache/dubbo/issues/14470#issuecomment-2320399946

   it seems no multi thread makes flow clean and clear.
   
   ```java
       private synchronized void doOnEvent(ServiceInstancesChangedEvent event) {
           getRemoteMetadata();
           
           int emptyNum = parseMetadata();
           if (emptyNum == allInstances.size()) {
               return;
           }
   
           notify();
   
           if (emptyNum > 0) {
               doOnEvent(event);
           }
       }
   ```
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to