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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user