Skip to content

Commit

Permalink
fix: keep single Store from draining
Browse files Browse the repository at this point in the history
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
  • Loading branch information
jef committed Sep 20, 2020
1 parent 39a4780 commit e819e46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Expand Up @@ -41,6 +41,9 @@ async function main() {
for (const store of Stores) {
Logger.debug(store.links);
q.push(store);
if (Stores.length === 1) {
q.push(store);
} // Keep from completely draining
}

await q.drain();
Expand Down

0 comments on commit e819e46

Please sign in to comment.