Stop implementing IntoFuture for Serve via with_graceful_shutdown

This commit is contained in:
Jonas Platte
2025-04-30 14:19:15 +02:00
parent 085be6970b
commit ba4327ece0
+4 -2
View File
@@ -201,8 +201,10 @@ where
type IntoFuture = private::ServeFuture; type IntoFuture = private::ServeFuture;
fn into_future(self) -> Self::IntoFuture { fn into_future(self) -> Self::IntoFuture {
self.with_graceful_shutdown(std::future::pending()) private::ServeFuture(Box::pin(async move {
.into_future() do_serve(self.listener, self.make_service, std::future::pending()).await;
Ok(())
}))
} }
} }