Correct /nat API for libp2p (#6677)

* Fix nat API
This commit is contained in:
Age Manning
2024-12-16 10:16:53 +11:00
committed by GitHub
parent f3b78889e5
commit c3a0757ad2
2 changed files with 2 additions and 6 deletions

View File

@@ -141,10 +141,6 @@ impl<E: EthSpec> NetworkBehaviour for PeerManager<E> {
debug!(self.log, "Failed to dial peer"; "peer_id"=> ?peer_id, "error" => %ClearDialError(error));
self.on_dial_failure(peer_id);
}
FromSwarm::ExternalAddrConfirmed(_) => {
// We have an external address confirmed, means we are able to do NAT traversal.
metrics::set_gauge_vec(&metrics::NAT_OPEN, &["libp2p"], 1);
}
_ => {
// NOTE: FromSwarm is a non exhaustive enum so updates should be based on release
// notes more than compiler feedback