Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuker committed Jul 11, 2023
1 parent 84686f6 commit 37ea080
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/support-top-net.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,9 @@ func mainSupportTopNet(ctx *cli.Context) error {
ctxt, cancel := context.WithCancel(globalContext)
defer cancel()

info, e := client.ServerInfo(ctxt)
_, e := client.ServerInfo(ctxt)
fatalIf(probe.NewError(e).Trace(aliasedURL), "Unable to initialize admin client.")

var endpoint []string
for _, srv := range info.Servers {
endpoint = append(endpoint, srv.Endpoint)
}

// MetricsOptions are options provided to Metrics call.
opts := madmin.MetricsOptions{
Type: madmin.MetricNet,
Expand Down

0 comments on commit 37ea080

Please sign in to comment.