sets online healthStatus to offline
()
| 463 | |
| 464 | // sets online healthStatus to offline |
| 465 | func (c *Client) markOffline() { |
| 466 | atomic.CompareAndSwapInt32(&c.healthStatus, online, offline) |
| 467 | } |
| 468 | |
| 469 | // IsOffline returns true if healthcheck enabled and client is offline |
| 470 | // If HealthCheck function has not been called this will always return false. |