chore(jetstream): log bulk-create record count on flush
This commit is contained in:
@@ -72,6 +72,9 @@ const flushBulkCreate = async (did: string): Promise<void> => {
|
|||||||
if (!buffer) return;
|
if (!buffer) return;
|
||||||
bulkBuffers.delete(did);
|
bulkBuffers.delete(did);
|
||||||
const webhooks = getWebhooksByDidAndVerb(did, "bulk-create");
|
const webhooks = getWebhooksByDidAndVerb(did, "bulk-create");
|
||||||
|
log(
|
||||||
|
`[jetstream] bulk-create ${did}: ${buffer.records.length} record(s)`,
|
||||||
|
);
|
||||||
await dispatchAll(
|
await dispatchAll(
|
||||||
webhooks,
|
webhooks,
|
||||||
{ event: "bulk-create", did, records: buffer.records },
|
{ event: "bulk-create", did, records: buffer.records },
|
||||||
|
|||||||
Reference in New Issue
Block a user