diff --git a/relay-server/src/services/buffer/mod.rs b/relay-server/src/services/buffer/mod.rs index 5756193e1f..5afc884d12 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(DEFAULT_SLEEP).await; + tokio::time::sleep(Duration::ZERO).await; } relay_statsd::metric!(