mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-01 00:00:14 +02:00
Stop implementing IntoFuture for Serve via with_graceful_shutdown
This commit is contained in:
@@ -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(())
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user