Skip to content

Commit

Permalink
remove unneeded await for block cache set
Browse files Browse the repository at this point in the history
  • Loading branch information
blaine-arcjet committed Dec 13, 2023
1 parent f3472a7 commit 110fe47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arcjet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ export default function arcjet<
reason: decision.reason,
});

await blockCache.set(
blockCache.set(
fingerprint,
decision.reason,
decision.ttl,
Expand Down Expand Up @@ -999,7 +999,7 @@ export default function arcjet<
if (decision.isDenied() && decision.ttl > 0) {
log.debug("decide: Caching block locally for %d milliseconds", decision.ttl);

await blockCache.set(
blockCache.set(
fingerprint,
decision.reason,
decision.ttl,
Expand Down

0 comments on commit 110fe47

Please sign in to comment.