()
| 752 | } |
| 753 | |
| 754 | func (r *replica) isActive() bool { |
| 755 | // The replica is active if at least a single host is active. |
| 756 | for _, h := range r.hosts { |
| 757 | if h.IsActive() { |
| 758 | return true |
| 759 | } |
| 760 | } |
| 761 | return false |
| 762 | } |
| 763 | |
| 764 | func (r *replica) load() uint32 { |
| 765 | var reqs uint32 |
no test coverage detected