mirror of
https://github.com/redis/go-redis.git
synced 2025-07-31 05:04:23 +03:00
ring: fix key hashing in Ring pipeline.
This commit is contained in:
@ -326,7 +326,7 @@ const hashSlots = 16384
|
||||
func hashKey(key string) string {
|
||||
if s := strings.IndexByte(key, '{'); s > -1 {
|
||||
if e := strings.IndexByte(key[s+1:], '}'); e > 0 {
|
||||
key = key[s+1 : s+e+1]
|
||||
return key[s+1 : s+e+1]
|
||||
}
|
||||
}
|
||||
return key
|
||||
|
Reference in New Issue
Block a user