Procházet zdrojové kódy

benchmark: fix Compact request

Gyu-Ho Lee před 9 roky
rodič
revize
ae057ec508
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tools/benchmark/cmd/put.go

+ 1 - 1
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)