Skip to content

Commit

Permalink
Merge pull request #4813 from eval-exec/exec/fix-log
Browse files Browse the repository at this point in the history
ckb-network: print remove public_addr log when it really removed
  • Loading branch information
zhangsoledad authored Feb 20, 2025
2 parents b05727c + ef0f427 commit 0f34d1e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions network/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,11 +635,12 @@ impl ServiceHandle for EventHandler {
debug!("DialerError({}) {}", address, error);
}
}
info!(
"Dial {} failed, remove it from network_state.public_addrs",
address
);
public_addrs.remove(&address);
if public_addrs.remove(&address) {
info!(
"Dial {} failed, remove it from network_state.public_addrs",
address
);
}
self.network_state.dial_failed(&address);
}
ServiceError::ProtocolError {
Expand Down

0 comments on commit 0f34d1e

Please sign in to comment.