Queue member join and sync-request gossip through the outbox, infer members from mesh peers and profiles, add host-initiated identify handshake, and harden partition heal plus mesh bounded clearing. Co-authored-by: Cursor <[email protected]>
28 lines
1008 B
JavaScript
28 lines
1008 B
JavaScript
'use strict'
|
|
|
|
const { createJsonExportMeshMixin } = require('pearcord-json-export-mixin')
|
|
|
|
const webhookExecuteJsonMixin = createJsonExportMeshMixin({
|
|
keysField: '_webhookExecuteRegistryJsonGossipKeys',
|
|
watermarkField: '_webhookExecuteJsonHealWatermark',
|
|
initMethod: '_initWebhookExecuteJsonMixinState',
|
|
shouldGossipMethod: '_shouldGossipWebhookExecuteExportJson',
|
|
healMethod: '_healWebhookExecuteJsonExportCursorOnPartition',
|
|
spanKind: 'webhook.json',
|
|
healContext: 'heal.webhook',
|
|
countField: 'guildWebhookExecuteJsonCount',
|
|
bridgeKind: 'webhook.json',
|
|
listExportsMethod: 'listWebhookExecuteExportJsonExports',
|
|
extraSpanEnd: (rows) => ({
|
|
webhookCount: rows[0]?.webhookCount || 0
|
|
}),
|
|
})
|
|
|
|
webhookExecuteJsonMixin._healWebhookJsonExportCursorOnPartition = function _healWebhookJsonExportCursorOnPartition (
|
|
guildId
|
|
) {
|
|
return this._healWebhookExecuteJsonExportCursorOnPartition(guildId)
|
|
}
|
|
|
|
module.exports = { webhookExecuteJsonMixin, webhookJsonMixin: webhookExecuteJsonMixin }
|