mirror of
https://github.com/redis/go-redis.git
synced 2025-11-10 00:00:57 +03:00
fix(sentinel): handle empty address (#3577)
* improvements * linter fixes * prevention on unnecessary allocations in case of bad configuration * Test/Benchmark, old code with safety harness preventing panic --------- Co-authored-by: manish <manish.sharma@manifestit.io> Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
This commit is contained in:
@@ -106,3 +106,7 @@ func (c *ModuleLoadexConfig) ToArgs() []interface{} {
|
||||
func ShouldRetry(err error, retryTimeout bool) bool {
|
||||
return shouldRetry(err, retryTimeout)
|
||||
}
|
||||
|
||||
func JoinErrors(errs []error) string {
|
||||
return joinErrors(errs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user