You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sentinel.NewClientCustom uses hardcoded redis.Dial at the beginning. Shouldn't it use the same passed df DialFunc instead? So one could pass a DialTimeout wrapper.
The text was updated successfully, but these errors were encountered:
Hi @fillest ! thanks for submitting the issue. The df DialFunc is defined as being for the connections being made to the redis master, not the sentinel instance itself. I'd like to keep it separated as people use the DialFunc for more than just timeouts (e.g. it can be used for AUTH commands as well), so the DialFunc for the actual redis instances might not be appropriate for the sentinel.
I've had a lot of issues submitted lately about the sentinel package though, it wasn't designed particularly well when I first did so, and I'm thinking I'll add a sentinel.NewClientWithOpts function which can take in an options struct (like in cluster.NewWithOpts) and use that to address a lot of the feedback. I'll definitely keep this issue in mind when I do so, and I'll reference this issue number in the commit so you'll get a notification.
sentinel.NewClientCustom
uses hardcodedredis.Dial
at the beginning. Shouldn't it use the same passeddf DialFunc
instead? So one could pass a DialTimeout wrapper.The text was updated successfully, but these errors were encountered: