From c5e10647a885d2abe39fc5ca3e4f26aae4114d76 Mon Sep 17 00:00:00 2001 From: Riccardo Busetti Date: Fri, 13 Sep 2024 08:13:13 +0200 Subject: [PATCH] Update mod.rs Co-authored-by: Joris Bayer --- relay-server/src/services/buffer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay-server/src/services/buffer/mod.rs b/relay-server/src/services/buffer/mod.rs index 6c61cfc17f..869d029885 100644 --- a/relay-server/src/services/buffer/mod.rs +++ b/relay-server/src/services/buffer/mod.rs @@ -281,7 +281,7 @@ impl EnvelopeBufferService { relay_log::trace!("EnvelopeBufferService: shutting down gracefully"); let shutdown_result = - timeout(shutdown_timeout, async { buffer.shutdown().await }).await; + timeout(shutdown_timeout, buffer.shutdown()).await; match shutdown_result { Ok(shutdown_result) => { return shutdown_result;