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 {
|
||||
st := time.Now()
|
||||
_, err := c.KeepAliveOnce(context.TODO(), resp.ID)
|
||||
r.Results() <- report.Result{Err: err, Start: st, End: time.Now()}
|
||||
ka := c.KeepAliveOnce(context.TODO(), resp.ID)
|
||||
r.Results() <- report.Result{Err: ka.Err, Start: st, End: time.Now()}
|
||||
bar.Increment()
|
||||
}
|
||||
}(clients[i])
|
||||
|
Loading…
x
Reference in New Issue
Block a user