diff options
Diffstat (limited to 'shards.go')
| -rw-r--r-- | shards.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -15,7 +15,7 @@ func (db *RedisDB) getShard(key string)*Shard{ hash.Write([]byte(key)) val := hash.Sum64() - return db.shards[val%16] + return db.shards[val%NumShards] } func (db *RedisDB) Execute(key string, fn func(*Shard) interface{}) interface{} { |
