Deprecate shutdown_and_wait method on PeerManager
Using shutdown_signaler and await_shutdown is the prefered
approach
@@ -216,6 +216,10 @@ impl PeerManager {
debug!("Shutting down peer manager (complete)");
}
+ #[deprecated(
+ since = "0.5.1",
+ note = "Please use shutdown_signaler().shutdown() and await_shutdown() instead."
+ )]
/// Sends a shutdown signal and waits for the `PeerManager` thread to shutdown
pub fn shutdown_and_wait(self) {
self.shutdown_signaler.shutdown();
