benchmark: use new lease interface

release-3.2
Anthony Romano 2017-04-17 16:39:47 -07:00
parent 78afc853f4
commit cb8524fbec
1 changed files with 2 additions and 2 deletions

View File

@ -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])