Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iambriccardo committed Sep 17, 2024
1 parent 0bebf4c commit dd1ab83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions relay-server/src/services/buffer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@ impl EnvelopeBufferService {
tokio::time::sleep(self.sleep).await;
}

// In case the project cache is not ready, we don't want to attempt popping.
// 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.
if !self.project_cache_ready.load(Ordering::Relaxed) {
return future::pending().await;
tokio::time::sleep(DEFAULT_SLEEP).await;
}

relay_statsd::metric!(
Expand Down

0 comments on commit dd1ab83

Please sign in to comment.