Skip to content

Commit

Permalink
benchmark: use new lease interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano committed Apr 24, 2017
1 parent 9ac1599 commit 83a11fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/benchmark/cmd/lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 83a11fe

Please sign in to comment.