Files
willmiao-ComfyUI-Lora-Manager/py/utils
Will Miao 6ef20bd33e fix(hash): run calculate_sha256 in a thread executor
The async calculate_sha256 performed its full-file read+hash loop
synchronously, freezing the single aiohttp event loop for the whole
duration of a multi-GB checkpoint hash — every HTTP endpoint, websocket,
and the extension's progress polling hung with no error surfaced.

Move the blocking loop into run_in_executor so hashing occupies a worker
thread instead of the event loop. Fixes all call sites at once (download
finalize, checkpoint lazy hash, scanners, metadata manager).
2026-10-15 23:29:40 +08:00
..
2025-02-24 20:41:16 +08:00