Commit c9fc505
Clean up health check dead code and timeout
The constructor and functional options guarantee positive values
for healthCheckInterval and healthCheckPingTimeout, making two
zero-value guards unreachable. The redundant context timeout in
checkMCPStatus capped the configurable ping timeout at 5s; the
MCPPinger already enforces its own timeout internally.
Fixes #4790
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Greg Katz <gkatz@indeed.com>1 parent 052ecdd commit c9fc505
2 files changed
Lines changed: 4 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 109 | + | |
114 | 110 | | |
115 | 111 | | |
116 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | 459 | | |
464 | | - | |
| 460 | + | |
465 | 461 | | |
466 | | - | |
| 462 | + | |
467 | 463 | | |
468 | 464 | | |
469 | 465 | | |
| |||
1246 | 1242 | | |
1247 | 1243 | | |
1248 | 1244 | | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
| 1245 | + | |
1254 | 1246 | | |
1255 | 1247 | | |
1256 | 1248 | | |
| |||
0 commit comments