Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
qianye1001 committed Sep 23, 2024
1 parent 2e92f33 commit 71eb691
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,11 @@ public void updateNameServerAddressList(List<String> addrs) {
this.namesrvAddrList.set(addrs);

// should close the channel if choosed addr is not exist.
String choseNameServerAddr = this.namesrvAddrChoosed.get();
if (choseNameServerAddr != null && !addrs.contains(choseNameServerAddr)) {
namesrvAddrChoosed.compareAndSet(choseNameServerAddr, null);
String chosenNameServerAddr = this.namesrvAddrChoosed.get();
if (chosenNameServerAddr != null && !addrs.contains(chosenNameServerAddr)) {
namesrvAddrChoosed.compareAndSet(chosenNameServerAddr, null);
for (String addr : this.channelTables.keySet()) {
if (addr.contains(choseNameServerAddr)) {
if (addr.contains(chosenNameServerAddr)) {
ChannelWrapper channelWrapper = this.channelTables.get(addr);
if (channelWrapper != null) {
channelWrapper.close();
Expand Down

0 comments on commit 71eb691

Please sign in to comment.