mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
Initialize waited on the remote hash fetch before the server started listening, so when the hash request hung, startup stayed blocked until the client timeout (10 s). The local price file is already loaded at that point, so the hash check and any download now run in a goroutine; the periodic scheduler is unchanged. The model-count log in Initialize reads pricingData under the read lock because a background download may replace it.