From 83a11fe88f88cb31676c4a0722b8be9d94d7a2a7 Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Mon, 17 Apr 2017 16:39:47 -0700 Subject: [PATCH] benchmark: use new lease interface --- tools/benchmark/cmd/lease.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/benchmark/cmd/lease.go b/tools/benchmark/cmd/lease.go index 8743ed27ead9..bf59d075159f 100644 --- a/tools/benchmark/cmd/lease.go +++ b/tools/benchmark/cmd/lease.go @@ -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])