SetUnhealthy marks a pool as unhealthy.
()
| 225 | |
| 226 | // SetUnhealthy marks a pool as unhealthy. |
| 227 | func (p *Pool) SetUnhealthy() { |
| 228 | p.Lock() |
| 229 | defer p.Unlock() |
| 230 | p.lastEcho = time.Time{} |
| 231 | } |
| 232 | |
| 233 | func (p *Pool) listenToHeartbeat() error { |
| 234 | conn := p.Get() |
no test coverage detected