Skip to content

Commit

Permalink
ckb-network: print remove public_addr log when did removed
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Feb 20, 2025
1 parent 0c8434c commit ef0f427
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 @@ -645,11 +645,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 ef0f427

Please sign in to comment.