mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-24 23:01:01 +00:00
fix: update types for heartbeat interval and constructor logger in DashboardServer and QueryDiversityEngine
This commit is contained in:
@@ -21,7 +21,7 @@ export class DashboardServer {
|
||||
private server: ReturnType<typeof createServer>
|
||||
private wss: WebSocketServer
|
||||
private clients: Set<WebSocket> = new Set()
|
||||
private heartbeatInterval?: NodeJS.Timer
|
||||
private heartbeatInterval?: NodeJS.Timeout
|
||||
private dashboardLimiter = rateLimit({
|
||||
windowMs: 15 * 60 * 1000, // 15 minutes
|
||||
max: 100, // limit each IP to 100 requests per windowMs for dashboard UI
|
||||
|
||||
Reference in New Issue
Block a user