benchmark: fix Compact request

release-3.0
Gyu-Ho Lee 2016-06-28 13:58:28 -07:00
parent 269de67bde
commit 53c27ae621
1 changed files with 1 additions and 1 deletions

View File

@ -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)