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

Method MarkAsFailing

osscluster.go:548–551  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

546}
547
548func (n *clusterNode) MarkAsFailing() {
549 atomic.StoreUint32(&n.failing, uint32(time.Now().Unix()))
550 atomic.StoreUint32(&n.loaded, 0)
551}
552
553func (n *clusterNode) Failing() bool {
554 timeout := int64(n.Client.opt.FailingTimeoutSeconds)

Callers 5

processMethod · 0.95
processPipelineNodeMethod · 0.80
pipelineReadCmdsMethod · 0.80
osscluster_test.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected