Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove redundant impl NetworkManager #11390

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading