Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
huettenhain committed Dec 3, 2024
1 parent 3204b47 commit 79d2f19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions refinery/units/compression/zstd.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ def _pyzstd():
return pyzstd

def process(self, data):
return self._pyzstd.ZstdDecompressor().decompress(data)
zd = self._pyzstd.ZstdDecompressor()
return zd.decompress(data)

def reverse(self, data):
zc = self._pyzstd.ZstdCompressor()
zc.compress(data)
return zc.flush()
return zc.compress(data) + zc.flush()

@classmethod
def handles(self, data: bytearray) -> bool:
Expand Down

0 comments on commit 79d2f19

Please sign in to comment.