Skip to content

Commit ba9b11c

Browse files
committed
Fix flake
1 parent 6c73cb0 commit ba9b11c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/record/legacy_records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def compression_type(self):
105105
return self._attributes & self.CODEC_MASK
106106

107107
def validate_crc(self):
108-
crc = calc_crc32(self.buffer[self.MAGIC_OFFSET:])
108+
crc = calc_crc32(self._buffer[self.MAGIC_OFFSET:])
109109
return self._crc == crc
110110

111111
def _decompress(self, key_offset):

0 commit comments

Comments
 (0)