Skip to content

Commit

Permalink
Remove await in race
Browse files Browse the repository at this point in the history
Co-Authored-By: RangerMauve <RangerMauve@hotmail.com>
  • Loading branch information
DougAnderson444 and RangerMauve authored Sep 18, 2019
1 parent 5ef82ec commit 47261d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
])

Expand Down

0 comments on commit 47261d1

Please sign in to comment.