MCPcopy
hub / github.com/redis/go-redis / IsDown

Method IsDown

ring.go:289–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287}
288
289func (shard *ringShard) IsDown() bool {
290 const threshold = 3
291 return atomic.LoadInt32(&shard.down) >= threshold
292}
293
294func (shard *ringShard) IsUp() bool {
295 return !shard.IsDown()

Callers 3

IsUpMethod · 0.95
VoteMethod · 0.95
ForEachShardMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected