Skip to content

Commit 54fb55e

Browse files
authored
Remove unnecessary await from queues getting started example code (cloudflare#6807)
JSON.stringify is not async.
1 parent 42fb2dc commit 54fb55e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/queues/get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default {
162162
return new Response("Success!");
163163
}
164164
async queue(batch: MessageBatch<Error>, env: Environment): Promise<void> {
165-
let messages = await JSON.stringify(batch.messages)
165+
let messages = JSON.stringify(batch.messages)
166166
console.log(`consumed from our queue: ${messages}`)
167167
}
168168
}

0 commit comments

Comments
 (0)