benchmark: use new lease interface
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…
Reference in New Issue