go-redis icon indicating copy to clipboard operation
go-redis copied to clipboard

Default MaxRetries on cluster clients is -1 and not 3

Open jbeaudetupgrade opened this issue 2 years ago • 0 comments

Expected Behavior

I believe the MaxRetries default value should be the same for clusters and standalone mode, unless it's intended?

Current Behavior

This commit added a specific disable to MaxRetries in ClusterOptions as opposed to Options which defaults to 3.

Possible Solution

If it's intended, we should add documentation in the code at least. If it's not, then it's a simple fix :)

Thanks

jbeaudetupgrade avatar Oct 13 '22 15:10 jbeaudetupgrade