From ae057ec50807fe0b13e7390517e21da6e8d6d1e0 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Tue, 28 Jun 2016 13:58:28 -0700 Subject: [PATCH] benchmark: fix Compact request --- tools/benchmark/cmd/put.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/benchmark/cmd/put.go b/tools/benchmark/cmd/put.go index 165db9f10..aab8d5a42 100644 --- a/tools/benchmark/cmd/put.go +++ b/tools/benchmark/cmd/put.go @@ -143,7 +143,7 @@ func compactKV(clients []*v3.Client) { revToCompact := max(0, curRev-compactIndexDelta) for _, c := range clients { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) - err := c.KV.Compact(ctx, revToCompact) + _, err := c.KV.Compact(ctx, revToCompact) cancel() if err != nil { panic(err)