File tree 2 files changed +2
-6
lines changed
beacon_node/lighthouse_network/src/peer_manager
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -141,10 +141,6 @@ impl<E: EthSpec> NetworkBehaviour for PeerManager<E> {
141
141
debug ! ( self . log, "Failed to dial peer" ; "peer_id" => ?peer_id, "error" => %ClearDialError ( error) ) ;
142
142
self . on_dial_failure ( peer_id) ;
143
143
}
144
- FromSwarm :: ExternalAddrConfirmed ( _) => {
145
- // We have an external address confirmed, means we are able to do NAT traversal.
146
- metrics:: set_gauge_vec ( & metrics:: NAT_OPEN , & [ "libp2p" ] , 1 ) ;
147
- }
148
144
_ => {
149
145
// NOTE: FromSwarm is a non exhaustive enum so updates should be based on release
150
146
// notes more than compiler feedback
Original file line number Diff line number Diff line change @@ -235,14 +235,14 @@ pub fn observe_nat() -> NatState {
235
235
236
236
let libp2p_ipv4 = lighthouse_network:: metrics:: get_int_gauge (
237
237
& lighthouse_network:: metrics:: NAT_OPEN ,
238
- & [ "libp2p " ] ,
238
+ & [ "libp2p_ipv4 " ] ,
239
239
)
240
240
. map ( |g| g. get ( ) == 1 )
241
241
. unwrap_or_default ( ) ;
242
242
243
243
let libp2p_ipv6 = lighthouse_network:: metrics:: get_int_gauge (
244
244
& lighthouse_network:: metrics:: NAT_OPEN ,
245
- & [ "libp2p " ] ,
245
+ & [ "libp2p_ipv6 " ] ,
246
246
)
247
247
. map ( |g| g. get ( ) == 1 )
248
248
. unwrap_or_default ( ) ;
You can’t perform that action at this time.
0 commit comments