MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / isActive

Method isActive

scope.go:754–762  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

752}
753
754func (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
764func (r *replica) load() uint32 {
765 var reqs uint32

Callers 2

getReplicaMethod · 0.80
getReplicaStickyMethod · 0.80

Calls 1

IsActiveMethod · 0.80

Tested by

no test coverage detected