mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #5796 from gyuho/bench
benchmark: fix Compact request
This commit is contained in:
commit
da180e0790
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user