Skip to content

Commit c73b649

Browse files
committed
fix: linting
1 parent cf2cfdc commit c73b649

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/mcp/client/sse_client.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ func (w *SSEMCPClientWrapper) monitorErrors(ctx context.Context) {
149149
if w.checkConnection(ctx) {
150150
successfulChecks++
151151
} else {
152-
successfulChecks = 0
153-
// Reset to faster health check interval on failure
152+
// Reset health check interval on failure and trigger reconnect
154153
w.healthCheckInterval = 1 * time.Second
155154
ticker.Reset(w.healthCheckInterval)
156155

0 commit comments

Comments
 (0)