Skip to content

Commit

Permalink
fix close resp body
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv committed Dec 5, 2023
1 parent 98325df commit 64e5c8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/executor/internal/calibrateresource/calibrate_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,10 @@ func fetchStoreMetrics(serversInfo []infoschema.ServerInfo, serverType string, o
if resp == nil {
var err1 error
resp, err1 = util.InternalHTTPClient().Do(req)
if err1 != nil && firstErr == nil {
firstErr = err1
if err1 != nil {
if firstErr == nil {
firstErr = err1
}
continue
}
}
Expand Down

0 comments on commit 64e5c8b

Please sign in to comment.