mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
benchmark: use new lease interface
This commit is contained in:
parent
78afc853f4
commit
cb8524fbec
@ -61,8 +61,8 @@ func leaseKeepaliveFunc(cmd *cobra.Command, args []string) {
|
|||||||
}
|
}
|
||||||
for range requests {
|
for range requests {
|
||||||
st := time.Now()
|
st := time.Now()
|
||||||
_, err := c.KeepAliveOnce(context.TODO(), resp.ID)
|
ka := c.KeepAliveOnce(context.TODO(), resp.ID)
|
||||||
r.Results() <- report.Result{Err: err, Start: st, End: time.Now()}
|
r.Results() <- report.Result{Err: ka.Err, Start: st, End: time.Now()}
|
||||||
bar.Increment()
|
bar.Increment()
|
||||||
}
|
}
|
||||||
}(clients[i])
|
}(clients[i])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user