fix: keep single Store from draining

Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
Jef LeCompte
2020-09-20 12:00:25 -04:00
parent 39a478050a
commit e819e46116
+3
View File
@@ -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();