nomagick commited on
Commit
845e441
·
unverified ·
1 Parent(s): 131375b

fix: cache batch interval

Browse files
Files changed (2) hide show
  1. src/api/searcher.ts +1 -1
  2. src/api/serp.ts +1 -1
src/api/searcher.ts CHANGED
@@ -93,7 +93,7 @@ export class SearcherHost extends RPCHost {
93
  .catch((err) => {
94
  this.logger.warn(`Failed to cache search result in batch`, { err });
95
  });
96
- }, 1000 * 60 * 10 + Math.round(1000 * Math.random())).unref();
97
  }
98
 
99
  override async init() {
 
93
  .catch((err) => {
94
  this.logger.warn(`Failed to cache search result in batch`, { err });
95
  });
96
+ }, 1000 * 10 + Math.round(1000 * Math.random())).unref();
97
  }
98
 
99
  override async init() {
src/api/serp.ts CHANGED
@@ -113,7 +113,7 @@ export class SerpHost extends RPCHost {
113
  .catch((err) => {
114
  this.logger.warn(`Failed to cache search result in batch`, { err });
115
  });
116
- }, 1000 * 60 * 10 + Math.round(1000 * Math.random())).unref();
117
  }
118
 
119
  override async init() {
 
113
  .catch((err) => {
114
  this.logger.warn(`Failed to cache search result in batch`, { err });
115
  });
116
+ }, 1000 * 10 + Math.round(1000 * Math.random())).unref();
117
  }
118
 
119
  override async init() {