chore(broker): tag stale-sweep evictions with an explicit reason

evictPresenceFully(pid, "stale_sweep_flipped_live_lease") so the
"ws evict full" line distinguishes reconciler evictions from grace expiry
and close-while-offline in the logs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-09-08 23:18:26 +01:00
parent dd6d82a094
commit 6c46b52964

View File

@@ -5826,7 +5826,7 @@ async function main(): Promise<void> {
session_pubkey: conn?.sessionPubkey?.slice(0, 12) ?? "(member-WS)",
last_pong_ago_ms: conn ? Date.now() - conn.lastPongAt : -1,
});
void evictPresenceFully(pid);
void evictPresenceFully(pid, "stale_sweep_flipped_live_lease");
}
},
});