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!(