Skip to content

Commit 8ceb702

Browse files
committed
Remove unused variables
1 parent 6897ef7 commit 8ceb702

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

beacon_node/lighthouse_network/src/peer_manager/network_behaviour.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::net::IpAddr;
44
use std::task::{Context, Poll};
55

66
use futures::StreamExt;
7-
use libp2p::core::{multiaddr, ConnectedPoint};
7+
use libp2p::core::ConnectedPoint;
88
use libp2p::identity::PeerId;
99
use libp2p::swarm::behaviour::{ConnectionClosed, ConnectionEstablished, DialFailure, FromSwarm};
1010
use libp2p::swarm::dial_opts::{DialOpts, PeerCondition};
@@ -285,7 +285,7 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
285285
fn on_connection_closed(
286286
&mut self,
287287
peer_id: PeerId,
288-
endpoint: &ConnectedPoint,
288+
_endpoint: &ConnectedPoint,
289289
remaining_established: usize,
290290
) {
291291
if remaining_established > 0 {
@@ -313,7 +313,6 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
313313
// reference so that peer manager can track this peer.
314314
self.inject_disconnect(&peer_id);
315315

316-
let remote_addr = endpoint.get_remote_address();
317316
// Update the prometheus metrics
318317
if self.metrics_enabled {
319318
// Legacy standard metrics.

0 commit comments

Comments
 (0)