fix(federation-worker): reset consecutive_auth_failures on successful delivery

Pairs with the new 401/403 handler — a 2xx relay confirms HMAC trust is
healthy so the counter should clear. Mirrors the existing
consecutive_failures reset for network-layer health.
This commit is contained in:
Jannis Braun
2026-04-21 20:46:52 +02:00
parent 012e489bc7
commit 48dbe32a69
@@ -262,6 +262,7 @@ async function processOutboxTick(): Promise<void> {
.set({ .set({
lastSeenAt: now, lastSeenAt: now,
consecutiveFailures: 0, consecutiveFailures: 0,
consecutiveAuthFailures: 0,
}) })
.where(eq(schema.federationPeers.id, peerId)) .where(eq(schema.federationPeers.id, peerId))
.run(); .run();