fix: cache batch interval

This commit is contained in:
Yanlong Wang 2025-04-28 15:48:20 +08:00
parent 131375b8a8
commit 845e441b0a
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ export class SearcherHost extends RPCHost {
.catch((err) => {
this.logger.warn(`Failed to cache search result in batch`, { err });
});
}, 1000 * 60 * 10 + Math.round(1000 * Math.random())).unref();
}, 1000 * 10 + Math.round(1000 * Math.random())).unref();
}
override async init() {

View File

@ -113,7 +113,7 @@ export class SerpHost extends RPCHost {
.catch((err) => {
this.logger.warn(`Failed to cache search result in batch`, { err });
});
}, 1000 * 60 * 10 + Math.round(1000 * Math.random())).unref();
}, 1000 * 10 + Math.round(1000 * Math.random())).unref();
}
override async init() {