Skip to content

Commit

Permalink
chore: Remove redundant impl NetworkManager (#11390)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg authored Oct 1, 2024
1 parent fbc01d6 commit b5b7005
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/net/network/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ impl NetworkManager {
metrics.acc_duration_poll_network_handle.set(acc_network_handle.as_secs_f64());
metrics.acc_duration_poll_swarm.set(acc_swarm.as_secs_f64());
}
}

impl NetworkManager {
/// Creates the manager of a new network.
///
/// The [`NetworkManager`] is an endless future that needs to be polled in order to advance the
Expand Down Expand Up @@ -948,9 +946,7 @@ impl NetworkManager {
.total_pending_connections
.set(self.swarm.sessions().num_pending_connections() as f64);
}
}

impl NetworkManager {
/// Drives the [`NetworkManager`] future until a [`GracefulShutdown`] signal is received.
///
/// This invokes the given function `shutdown_hook` while holding the graceful shutdown guard.
Expand Down

0 comments on commit b5b7005

Please sign in to comment.