MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / failoverAfterSubscriptionTimeout

Method failoverAfterSubscriptionTimeout

internal/home/client.go:462–475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

460}
461
462func (c *Client) failoverAfterSubscriptionTimeout() (bool, string) {
463 if c == nil {
464 return false, ""
465 }
466 c.mu.Lock()
467 defer c.mu.Unlock()
468
469 if !c.clusterDiscoveryEnabledLocked() {
470 c.reconnectFailures = 0
471 return false, ""
472 }
473 c.reconnectFailures = 0
474 return c.switchToNextNodeLocked()
475}
476
477func (c *Client) switchToNextNodeLocked() (bool, string) {
478 currentHost := strings.TrimSpace(c.homeCfg.Host)

Callers 1

Calls 2

Tested by

no test coverage detected