Skip to content

Commit 5b03fe0

Browse files
committed
update comment
1 parent db8932c commit 5b03fe0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/database/db/src/operations.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,8 +854,9 @@ impl<T: ReadConnectionProvider + Sync + ?Sized> DatabaseReadOperations for T {
854854
.one(self.get_connection())
855855
.await?
856856
{
857-
// Yield n messages starting from the found queue index + 1.
858-
// Only return messages that haven't been skipped (skipped = false).
857+
// Yield n messages starting from the found queue index + 1. Only return messages
858+
// that have not been skipped (skipped = false) to handle the edge case where the
859+
// last message in a batch is skipped.
859860
Ok(models::l1_message::Entity::find()
860861
.filter(
861862
// We add 1 to the queue index to constrain across block boundaries

0 commit comments

Comments
 (0)