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

Fix go vet

This commit is contained in:
Vladimir Mihailenco
2018-03-07 11:56:24 +02:00
parent e9e73a92c0
commit 852a60d520
4 changed files with 537 additions and 234 deletions

View File

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