fix hash key

This commit is contained in:
david.yan 2025-03-27 02:49:44 +08:00
parent da87dee55c
commit 433cd1f8bc
1 changed files with 1 additions and 1 deletions

View File

@ -59,6 +59,6 @@ func New(dsn string, hashRadix string) *RedisClient {
func Hash(s string) int {
h := fnv.New32a()
h.Write([]byte(s))
h.Write([]byte(strings.ToLower(s)))
return int(h.Sum32()) % vars.RedisShardings
}