(id: string)
| 269 | options.sessionSweepIntervalMs ?? Math.max(MIN_SWEEP_INTERVAL_MS, Math.floor(idleTtlMs / 4)); |
| 270 | |
| 271 | const touch = (id: string): void => { |
| 272 | if (lastSeen.has(id)) lastSeen.set(id, Date.now()); |
| 273 | }; |
| 274 | |
| 275 | /** Claim a session for one in-flight request, so the sweep cannot take it. */ |
| 276 | const beginRequest = (id: string): void => { |
no test coverage detected