Skip to content

Commit c16cc8c

Browse files
committed
use StringIO
1 parent 7f8f276 commit c16cc8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/kafka/lz4_codec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def compress(data)
1515
end
1616

1717
def decompress(data)
18-
LZ4::uncompress(data)
18+
buffer = StringIO.new(data)
19+
LZ4::uncompress(buffer)
1920
end
2021
end
2122
end

0 commit comments

Comments
 (0)