Skip to content

Commit

Permalink
Merge pull request #206 from JacobSMoller/timestamp-type-bit
Browse files Browse the repository at this point in the history
Record TimestampType functionality match comment
  • Loading branch information
twmb authored Oct 6, 2022
2 parents 65375ff + 8566354 commit d3e35a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kgo/record_and_fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (a RecordAttrs) TimestampType() int8 {
if a.attrs&0b1000_0000 != 0 {
return -1
}
return int8(a.attrs & 0b0000_1000)
return int8(a.attrs&0b0000_1000) >> 3
}

// CompressionType signifies with which algorithm this record was compressed.
Expand Down

0 comments on commit d3e35a4

Please sign in to comment.