Skip to content

Commit

Permalink
fix(core): do not hard code the number of ms to wait before fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Feb 11, 2022
1 parent b3091ad commit 60fdbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/chunk.source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export abstract class ChunkSourceBase implements ChunkSource {

// Queue a fetch
if (this.toFetchPromise == null) {
this.toFetchPromise = new Promise<void>((resolve) => setNext(resolve, 1)).then(() => {
this.toFetchPromise = new Promise<void>((resolve) => setNext(resolve, this.delayMs)).then(() => {
return this.fetchData(log);
});
}
Expand Down

0 comments on commit 60fdbdd

Please sign in to comment.