diff --git a/relay-server/src/services/buffer/mod.rs b/relay-server/src/services/buffer/mod.rs index 1b625e1b21..3936c4073c 100644 --- a/relay-server/src/services/buffer/mod.rs +++ b/relay-server/src/services/buffer/mod.rs @@ -142,7 +142,9 @@ impl EnvelopeBufferService { buffer: &mut PolymorphicEnvelopeBuffer, ) -> Result<(), SendError> { self.system_ready(buffer).await; - tokio::time::sleep(self.sleep).await; + if self.sleep > Duration::ZERO { + tokio::time::sleep(self.sleep).await; + } if let Some(project_cache_ready) = self.project_cache_ready.as_mut() { project_cache_ready.await?; self.project_cache_ready = None;