MCPcopy
hub / github.com/coder/mux / markHealthy

Method markHealthy

src/node/runtime/SSH2ConnectionPool.ts:348–358  ·  view source on GitHub ↗
(config: SSHConnectionConfig)

Source from the content-addressed store, hash-verified

346 }
347
348 markHealthy(config: SSHConnectionConfig): void {
349 const key = makeConnectionKey(config);
350 const existing = this.health.get(key);
351 this.health.set(key, {
352 status: "healthy",
353 lastSuccess: new Date(),
354 consecutiveFailures: 0,
355 lastFailure: existing?.lastFailure,
356 lastError: existing?.lastError,
357 });
358 }
359
360 reportFailure(config: SSHConnectionConfig, errorMessage: string): void {
361 const key = makeConnectionKey(config);

Callers 2

acquireConnectionMethod · 0.95
connectWithKeyMethod · 0.95

Calls 3

setMethod · 0.80
makeConnectionKeyFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected