Skip to content

Commit

Permalink
Update src/helpers/requestDeduplicator.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR authored Aug 3, 2023
1 parent 8b1fada commit 60a151c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/helpers/requestDeduplicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ export default async function serve(id, action, args) {
return result;
})
.catch(e => {
console.log('EventEmitter Error', e);
ongoingRequests.delete(key);
throw { error: true, e };
throw e;
});
ongoingRequests.set(key, requestPromise);
}
Expand Down

0 comments on commit 60a151c

Please sign in to comment.