fix(federation): raise relay rate limit from 30 to 90 req/min per peer
The outbox worker interval was reduced from 10s to 1s in FED-009, so a busy sender can now hit 60 req/min during sustained traffic. 90 gives 50% headroom.
This commit is contained in:
@@ -108,7 +108,7 @@ function isAcceptRateLimited(ip: string): boolean {
|
||||
// ─── In-memory rate limiter for the relay endpoint (per-peer) ────────────────
|
||||
const relayRateBuckets = new Map<string, number[]>();
|
||||
const RELAY_RATE_WINDOW_MS = 60_000;
|
||||
const RELAY_RATE_MAX = 30;
|
||||
const RELAY_RATE_MAX = 90;
|
||||
|
||||
function isRelayRateLimited(peerOrigin: string): boolean {
|
||||
const now = Date.now();
|
||||
|
||||
Reference in New Issue
Block a user