(reason string)
| 433 | } |
| 434 | |
| 435 | func (c *Client) markReconnectFailure(reason string) { |
| 436 | switched, addr := c.failoverAfterReconnectFailure() |
| 437 | if switched { |
| 438 | log.Warnf("home control center unavailable after repeated %s failures; switching to %s", reason, addr) |
| 439 | } |
| 440 | } |
| 441 | |
| 442 | func (c *Client) failoverAfterReconnectFailure() (bool, string) { |
| 443 | if c == nil { |
no test coverage detected