From b5cd81712aa356f65c7cd7b88495650587a3f7f7 Mon Sep 17 00:00:00 2001 From: Bodong Yang Date: Mon, 27 May 2024 11:56:01 +0000 Subject: [PATCH] minor update --- otaclient/app/downloader.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/otaclient/app/downloader.py b/otaclient/app/downloader.py index b101b097f..926a5e220 100644 --- a/otaclient/app/downloader.py +++ b/otaclient/app/downloader.py @@ -279,11 +279,9 @@ def _thread_initializer(self): # ------ compression support ------ # self._thread_local._compression_support_matrix = {} # zstd decompression adapter - self._thread_local._zstd = ZstdDecompressionAdapter() - self._thread_local._compression_support_matrix["zst"] = self._thread_local._zstd - self._thread_local._compression_support_matrix["zstd"] = ( - self._thread_local._zstd - ) + self._thread_local._zstd = zstd_adapter = ZstdDecompressionAdapter() + self._thread_local._compression_support_matrix["zst"] = zstd_adapter + self._thread_local._compression_support_matrix["zstd"] = zstd_adapter # ------ setup buffer ------ # self._thread_local.buffer = buffer = bytearray(self.CHUNK_SIZE)