diff --git a/ic-agent/src/agent/http_transport/dynamic_routing/dynamic_route_provider.rs b/ic-agent/src/agent/http_transport/dynamic_routing/dynamic_route_provider.rs index ceb87e088..2e374ecb3 100644 --- a/ic-agent/src/agent/http_transport/dynamic_routing/dynamic_route_provider.rs +++ b/ic-agent/src/agent/http_transport/dynamic_routing/dynamic_route_provider.rs @@ -251,7 +251,7 @@ impl Drop for DynamicRouteProvider { let tracker = self.tracker.clone(); // If no runtime is available do nothing. if let Ok(handle) = Handle::try_current() { - let _ = handle.spawn(async move { + handle.spawn(async move { tracker.wait().await; warn!("{DYNAMIC_ROUTE_PROVIDER}: stopped gracefully"); });