asapple opened a new issue, #9039: URL: https://github.com/apache/rocketmq/issues/9039
### Before Creating the Enhancement Request - [X] I have confirmed that this should be classified as an enhancement rather than a bug/feature. ### Summary The current implementation of the updateNameServerAddressList method is overly complex, with multiple responsibilities combined into a single method. This makes the code harder to read, understand, and maintain. ### Motivation The method handles a variety of tasks (address list comparison, updating, and channel closure handling), which results in confusing logic and increases the chance of introducing bugs when modifications are needed. ### Describe the Solution You'd Like Refactor the updateNameServerAddressList method to separate concerns into smaller, well-defined methods ### Describe Alternatives You've Considered null ### Additional Context _No response_ -- 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: commits-unsubscr...@rocketmq.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org