Skip to content

Commit

Permalink
fix: 不支持 hello,降级为 resp2
Browse files Browse the repository at this point in the history
  • Loading branch information
huangqing.zhu committed Aug 2, 2024
1 parent 8fdcd42 commit eea625c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ var reconnectErrors = []func(*client, string) bool{
return false
},
func(c *client, errString string) bool {
if !c.v.GetAlwaysRESP2() && strings.Contains(errString, "elements in cluster info address, expected 2 or 3") {
if !c.v.GetAlwaysRESP2() && strings.Contains(errString, "elements in cluster info address, expected 2 or 3") || strings.Contains(errString, "unsupported command `hello`") {
c.v.ApplyOption(WithAlwaysRESP2(true))
return true
}
Expand Down

0 comments on commit eea625c

Please sign in to comment.