We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db8932c commit 5b03fe0Copy full SHA for 5b03fe0
crates/database/db/src/operations.rs
@@ -854,8 +854,9 @@ impl<T: ReadConnectionProvider + Sync + ?Sized> DatabaseReadOperations for T {
854
.one(self.get_connection())
855
.await?
856
{
857
- // Yield n messages starting from the found queue index + 1.
858
- // Only return messages that haven't been skipped (skipped = false).
+ // Yield n messages starting from the found queue index + 1. Only return messages
+ // that have not been skipped (skipped = false) to handle the edge case where the
859
+ // last message in a batch is skipped.
860
Ok(models::l1_message::Entity::find()
861
.filter(
862
// We add 1 to the queue index to constrain across block boundaries
0 commit comments