Skip to content

Commit

Permalink
fix(buffer): Do not unwrap (#4395)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjbayer authored Dec 16, 2024
1 parent 960e8d9 commit 0d5fe3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relay-server/src/services/buffer/envelope_buffer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ where
return Ok(None);
};
let project_key_pair = *key;
let envelope = stack.pop().await.unwrap().expect("found an empty stack");
let envelope = stack.pop().await?.expect("found an empty stack");

let last_received_at = stack.peek().await?;

Expand Down

0 comments on commit 0d5fe3f

Please sign in to comment.