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
about cluster redis, if you have a password with redis, one funny bug will be happend.
here is the code about broker NewGR and backend NewGR
broker NewGR :
var password string
parts := strings.Split(addrs[0], "@")
if len(parts) >= 2 {
// with password
password = strings.Join(parts[:len(parts)-1], "@")
addrs[0] = parts[len(parts)-1] // addr is the last one without @
}
backend NewGR
parts := strings.Split(addrs[0], "@")
if len(parts) >= 2 {
// with passwrod
b.password = strings.Join(parts[:len(parts)-1], "@")
addrs[0] = parts[len(parts)-1] // addr is the last one without @
}
if we dont see the code of NewGR , we will use redis addrs in broker and backend.
But in the borker NewGR, it will change the array "addrs" ,cut the password of redis, and then the backend NewGR cant find the password in the array "addrs"
also, the password only cut the first one of the "addrs".
The text was updated successfully, but these errors were encountered:
about cluster redis, if you have a password with redis, one funny bug will be happend.
here is the code about broker NewGR and backend NewGR
broker NewGR :
backend NewGR
the cluster redis example
if we dont see the code of NewGR , we will use redis addrs in broker and backend.
But in the borker NewGR, it will change the array "addrs" ,cut the password of redis, and then the backend NewGR cant find the password in the array "addrs"
also, the password only cut the first one of the "addrs".
The text was updated successfully, but these errors were encountered: