fix: resolve unused variables in server-stats.ts

Fixed @typescript-eslint/no-unused-vars errors:
- Removed unused _reject parameter in Promise (line 64)
- Removed shadowed now variable in pollStatusesOnce (line 1130)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ZacharyZcR
2025-10-09 18:50:01 +08:00
parent 64df49677b
commit a7086aa0a8

View File

@@ -61,7 +61,7 @@ class SSHConnectionPool {
return client;
}
return new Promise((resolve, _reject) => {
return new Promise((resolve) => {
const checkAvailable = () => {
const available = connections.find((conn) => !conn.inUse);
if (available) {
@@ -1127,8 +1127,6 @@ async function pollStatusesOnce(userId?: string): Promise<void> {
return;
}
const now = new Date().toISOString();
const checks = hosts.map(async (h) => {
const isOnline = await tcpPing(h.ip, h.port, 5000);
const now = new Date().toISOString();