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

Method retryBackoff

osscluster.go:2280–2282  ·  view source on GitHub ↗
(attempt int)

Source from the content-addressed store, hash-verified

2278}
2279
2280func (c *ClusterClient) retryBackoff(attempt int) time.Duration {
2281 return internal.RetryBackoff(attempt, c.opt.MinRetryBackoff, c.opt.MaxRetryBackoff)
2282}
2283
2284func (c *ClusterClient) cmdsInfo(ctx context.Context) (map[string]*CommandInfo, error) {
2285 // Try 3 random nodes.

Callers 4

processMethod · 0.95
processPipelineMethod · 0.95
processTxPipelineMethod · 0.95
WatchMethod · 0.95

Calls 1

RetryBackoffFunction · 0.92

Tested by

no test coverage detected