kopia lustrzana https://github.com/cloudflare/wildebeest
Merge pull request #186 from cloudflare/sven/remove-unneeded-async
remove uneeded async closurepull/194/head
commit
c1aa5bb49a
|
@ -48,8 +48,7 @@ export async function deliverFollowers(
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const messages: Array<MessageSendRequest<DeliverMessageBody>> = await Promise.all(
|
const messages: Array<MessageSendRequest<DeliverMessageBody>> = followers.map((id) => {
|
||||||
followers.map(async (id) => {
|
|
||||||
const body = {
|
const body = {
|
||||||
// Make sure the object is supported by `structuredClone()`, ie
|
// Make sure the object is supported by `structuredClone()`, ie
|
||||||
// removing the URL objects as they aren't clonabled.
|
// removing the URL objects as they aren't clonabled.
|
||||||
|
@ -62,7 +61,6 @@ export async function deliverFollowers(
|
||||||
}
|
}
|
||||||
return { body }
|
return { body }
|
||||||
})
|
})
|
||||||
)
|
|
||||||
|
|
||||||
await queue.sendBatch(messages)
|
await queue.sendBatch(messages)
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue