Skip to content

Commit

Permalink
Fix Oplog decoding failing on bitfied update
Browse files Browse the repository at this point in the history
  • Loading branch information
ttiurani committed Oct 28, 2023
1 parent f99b99a commit 60d50a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oplog/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl CompactEncoding<Entry> for HypercoreState {
None
};

let bitfield: Option<BitfieldUpdate> = if flags & 4 != 0 {
let bitfield: Option<BitfieldUpdate> = if flags & 8 != 0 {
let value: BitfieldUpdate = self.decode(buffer)?;
Some(value)
} else {
Expand Down

0 comments on commit 60d50a5

Please sign in to comment.