1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Pass pointers where it makes sense

This commit is contained in:
Vladimir Mihailenco
2019-05-16 16:27:19 +03:00
parent 458982a440
commit 685d8922de
4 changed files with 217 additions and 223 deletions

View File

@ -188,7 +188,7 @@ func BenchmarkZAdd(b *testing.B) {
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
err := client.ZAdd("key", redis.Z{
err := client.ZAdd("key", &redis.Z{
Score: float64(1),
Member: "hello",
}).Err()