From e819e46116d4e0b067a59791094b5cfbd2d7cd45 Mon Sep 17 00:00:00 2001 From: Jef LeCompte Date: Sun, 20 Sep 2020 12:00:25 -0400 Subject: [PATCH] fix: keep single `Store` from draining Signed-off-by: Jef LeCompte --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index ed3304d..4036335 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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();