Skip to content

Commit

Permalink
Merge branch 'master' into riccardo/feat/buffer-eviction
Browse files Browse the repository at this point in the history
  • Loading branch information
iambriccardo committed Sep 9, 2024
2 parents 88a9fb5 + 0df2c08 commit 22a39d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion relay-server/src/services/buffer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ impl EnvelopeBufferService {
/// Wait for the configured amount of time and make sure the project cache is ready to receive.
async fn ready_to_pop(&mut self) -> Result<(), SendError> {
tokio::time::sleep(self.sleep).await;
if let Some(project_cache_ready) = self.project_cache_ready.take() {
if let Some(project_cache_ready) = self.project_cache_ready.as_mut() {
project_cache_ready.await?;
self.project_cache_ready = None;
}

Ok(())
}

Expand Down

0 comments on commit 22a39d7

Please sign in to comment.