From 8e12b9a33ee41a5a0f6b85da4408ddd7068ad3f0 Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Sat, 24 Dec 2022 15:01:32 -0500 Subject: [PATCH] server: restore original comment for skippedInstances --- packages/backend/src/misc/skipped-instances.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/misc/skipped-instances.ts b/packages/backend/src/misc/skipped-instances.ts index 1772ac878..0058c9bcf 100644 --- a/packages/backend/src/misc/skipped-instances.ts +++ b/packages/backend/src/misc/skipped-instances.ts @@ -15,7 +15,7 @@ const deadThreshold = 7 * DAY; * @returns array of punycoded instance hosts that should be skipped (subset of hosts parameter) */ export async function skippedInstances(hosts: Array): Promise> { - // Resolve the boolean promises before filtering + // first check for blocked instances since that info may already be in memory const meta = await fetchMeta(); const shouldSkip = await Promise.all(hosts.map(host => shouldBlockInstance(host, meta))); const skipped = hosts.filter((_, i) => shouldSkip[i]);