Explorar o código

benchmark: use new lease interface

Anthony Romano %!s(int64=8) %!d(string=hai) anos
pai
achega
cb8524fbec
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      tools/benchmark/cmd/lease.go

+ 2 - 2
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])