fix: Found 1 error in src/services/keepAliveService.ts:51 #521 (#522)

Co-authored-by: cheestard <134115886+cheestard@users.noreply.github.com>
This commit is contained in:
cheezmil
2025-12-25 09:15:07 +08:00
committed by GitHub
parent 33eae50bd3
commit b00e1c81fc

View File

@@ -48,7 +48,9 @@ export const setupClientKeepAlive = async (
await (serverInfo.client as any).ping(); await (serverInfo.client as any).ping();
console.log(`Keep-alive ping successful for server: ${serverInfo.name}`); console.log(`Keep-alive ping successful for server: ${serverInfo.name}`);
} else { } else {
await serverInfo.client.listTools({ timeout: 5000 }).catch(() => void 0); await serverInfo.client
.listTools({}, { ...(serverInfo.options || {}), timeout: 5000 })
.catch(() => void 0);
} }
} }
} catch (error) { } catch (error) {