Skip to content

Commit 0dee932

Browse files
committed
fix: 没改回来下载检查 hash
1 parent 9576b5c commit 0dee932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ async def _download(self, session: aiohttp.ClientSession, file_queues: asyncio.Q
381381
pbar.update(len(chunk))
382382
# check hash
383383
hash = utils.get_hash_hexdigest(file.hash, content.getvalue())
384-
if hash == file.hash:
384+
if hash != file.hash:
385385
raise ValueError(hash)
386386
if await self.clusters.storage_manager.write_file(file, content.getvalue()):
387387
pbar.update_success()

0 commit comments

Comments
 (0)