From 47261d1b1c98eda5e70a9fbc880bcd41500bcd48 Mon Sep 17 00:00:00 2001 From: Doug A Date: Wed, 18 Sep 2019 16:47:24 -0400 Subject: [PATCH] Remove await in race Co-Authored-By: RangerMauve --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index ca67e1b..499da87 100644 --- a/server.js +++ b/server.js @@ -219,7 +219,7 @@ class StoreServer { // give Paul's Dat API a moment to resolve and win the race // otherwsie, just return the resolved manifest you've already got manifest = Promise.race([ - await pda.readManifest(archive), + pda.readManifest(archive), new Promise((resolve, reject) => setTimeout(() => resolve(manifest), 500)) ])