mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 08:03:30 +08:00
Syncing latest changes between public/private.
This commit is contained in:
parent
d11057af8b
commit
81388647ed
@ -277,7 +277,7 @@ def _gen_hashes(fnames: List[str]) -> str:
|
|||||||
md5 = hashlib.md5()
|
md5 = hashlib.md5()
|
||||||
with open(fname, mode='rb') as infile:
|
with open(fname, mode='rb') as infile:
|
||||||
md5.update(infile.read())
|
md5.update(infile.read())
|
||||||
return (fname, md5.hexdigest())
|
return fname, md5.hexdigest()
|
||||||
|
|
||||||
# Now use all procs to hash the files efficiently.
|
# Now use all procs to hash the files efficiently.
|
||||||
with ThreadPoolExecutor(max_workers=cpu_count()) as executor:
|
with ThreadPoolExecutor(max_workers=cpu_count()) as executor:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user