Skip to content

Commit

Permalink
refactor(config): Add delay in listenQueue to throttle processing
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit committed Oct 30, 2024
1 parent 6a5f13a commit 3547f8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/deno-kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ export async function listenQueue(kv: Deno.Kv) {
continue;
}

await new Promise((resolve) => setTimeout(resolve, 1000));

let property;

try {
Expand Down

0 comments on commit 3547f8f

Please sign in to comment.