Skip to content

Commit

Permalink
Merge pull request #2862 from chihabhajji/patch-1
Browse files Browse the repository at this point in the history
Update queues.md - fix JS logic
  • Loading branch information
kamilmysliwiec authored Sep 21, 2023
2 parents 73c8d1d + 5e4525a commit d685e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/techniques/queues.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export class AudioConsumer {
@Process()
async transcode(job: Job<unknown>) {
let progress = 0;
for (i = 0; i < 100; i++) {
for (let i = 0; i < 100; i++) {
await doSomething(job.data);
progress += 1;
await job.progress(progress);
Expand Down

0 comments on commit d685e8e

Please sign in to comment.