mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-18 21:35:53 +08:00
fix: cache batch interval
This commit is contained in:
parent
131375b8a8
commit
845e441b0a
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user