MCPcopy
hub / github.com/grafana/dskit / IsInstanceInStateHealthy

Method IsInstanceInStateHealthy

ring/ring.go:1572–1574  ·  view source on GitHub ↗

IsInstanceInStateHealthy is used during "filtering" phase to remove undesired instances based on their state.

(s InstanceState)

Source from the content-addressed store, hash-verified

1570
1571// IsInstanceInStateHealthy is used during "filtering" phase to remove undesired instances based on their state.
1572func (op Operation) IsInstanceInStateHealthy(s InstanceState) bool {
1573 return op&(1<<s) > 0
1574}
1575
1576// ShouldExtendReplicaSetOnState returns true if given a state of instance
1577// that's going to be added to the replica set, for which

Callers 2

IsHealthyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected