From 33415ddf0401ad8026490bab078036a1e9ecb60c Mon Sep 17 00:00:00 2001 From: Riccardo Busetti Date: Tue, 17 Sep 2024 13:34:31 +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 f330f9a953..a88f5b650d 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::from_nanos(1)).await; + tokio::time::sleep(Duration::from_millis(10)).await; } relay_statsd::metric!(