We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbdd8fa commit afb6d29Copy full SHA for afb6d29
crates/service/src/service.rs
@@ -120,7 +120,7 @@ pub async fn run() -> anyhow::Result<()> {
120
//
121
let service = ServiceExt::<Request>::into_make_service(router);
122
Ok(serve(listener, service)
123
- .with_graceful_shutdown(shutdown_signal())
+ .with_graceful_shutdown(shutdown_handler())
124
.await?)
125
}
126
@@ -148,7 +148,8 @@ async fn create_subgraph_client(
148
))
149
150
151
-pub async fn shutdown_signal() {
+/// Graceful shutdown handler
152
+async fn shutdown_handler() {
153
let ctrl_c = async {
154
signal::ctrl_c()
155
.await
0 commit comments