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