Chore: minor changes

This commit is contained in:
SukkaW
2024-11-04 09:29:48 +08:00
parent 13005ad103
commit f0a3b3e915
3 changed files with 5 additions and 10 deletions

View File

@@ -290,7 +290,7 @@ export class Cache<S = string> {
// Most assets can be downloaded within 250ms. To avoid wasting bandwidth, we will wait for 500ms before downloading from the fallback URL.
if (index > 0) {
try {
await sleepWithAbort(300 + (index + 1) * 10, controller.signal);
await sleepWithAbort(100 + (index + 1) * 10, controller.signal);
} catch {
console.log(picocolors.gray('[fetch cancelled early]'), picocolors.gray(url));
throw new CustomAbortError();