Fails returns the number of recent failures with the upstream.
()
| 187 | |
| 188 | // Fails returns the number of recent failures with the upstream. |
| 189 | func (h *Host) Fails() int { |
| 190 | return int(h.fails.Load()) |
| 191 | } |
| 192 | |
| 193 | // activeHealthPasses returns the number of consecutive active health check passes with the upstream. |
| 194 | func (h *Host) activeHealthPasses() int { |