From 7b7d8d02b1ad78bd3a408e47f268e4204363d289 Mon Sep 17 00:00:00 2001 From: Riccardo Busetti Date: Tue, 17 Sep 2024 13:32:01 +0200 Subject: [PATCH] Fix --- 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 5afc884d12..f330f9a953 100644 --- a/relay-server/src/services/buffer/mod.rs +++ b/relay-server/src/services/buffer/mod.rs @@ -175,7 +175,7 @@ impl EnvelopeBufferService { // In case the project cache is not ready, we defer popping to first try and handle incoming // messages and only come back to this in case within the timeout no data was received. while !self.project_cache_ready.load(Ordering::Relaxed) { - tokio::time::sleep(Duration::ZERO).await; + tokio::time::sleep(Duration::from_nanos(1)).await; } relay_statsd::metric!(