Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iambriccardo committed Jul 24, 2024
1 parent 2fe08af commit 2b7615e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions relay-server/src/services/spooler/envelope_stack/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ impl SQLiteEnvelopeStack {
"failed to spool envelopes to disk",
);

// When early return here, we are acknowledging that the elements that we popped from
// the buffer are lost. We are doing this on purposes, since if we were to have a
// database corruption during runtime, and we were to put the values back into the buffer
// we will end up with an infinite cycle.
return Err(SQLiteEnvelopeStackError::DatabaseError(err));
}

Expand Down

0 comments on commit 2b7615e

Please sign in to comment.