mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Perf: offload Telegram CIDR fetching into separate thread
This commit is contained in:
@@ -79,10 +79,13 @@ export const buildCdnDownloadConf = task(require.main === module, __filename)(as
|
||||
downloadDomainSet,
|
||||
steamDomainSet
|
||||
] = await Promise.all([
|
||||
span.traceChildAsync('download public suffix list for s3', () => pool.exec(
|
||||
'getS3OSSDomains',
|
||||
[__filename]
|
||||
).finally(() => pool.terminate())),
|
||||
span.traceChildAsync(
|
||||
'download public suffix list for s3',
|
||||
() => pool.exec(
|
||||
'getS3OSSDomains',
|
||||
[__filename]
|
||||
).finally(() => pool.terminate())
|
||||
),
|
||||
cdnDomainsListPromise,
|
||||
downloadDomainSetPromise,
|
||||
steamDomainSetPromise
|
||||
|
||||
Reference in New Issue
Block a user