Skip to content

Commit

Permalink
clarify successor increment in sequence id
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp committed Jun 24, 2024
1 parent 0d612cc commit c30937a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/polars-stream/src/morsel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ impl MorselSeq {

// The morsel sequence id which comes after this morsel.
pub fn successor(self) -> Self {
// We increment by two because in the future we want to use the least
// significant bit to indicate the final morsel with that sequence id.
Self(self.0.checked_add(2).unwrap())
}

Expand Down

0 comments on commit c30937a

Please sign in to comment.