Skip to content

Commit

Permalink
Add missing defer.
Browse files Browse the repository at this point in the history
  • Loading branch information
LINCKODE committed Apr 29, 2024
1 parent 23095a2 commit 8a4b0aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foundation/rpc_server/rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func fetchMaxTick(ctx context.Context, maxTickFetchUrl string) (uint32, error) {
if err != nil {
return 0, errors.Wrap(err, "performing request")
}
res.Body.Close()
defer res.Body.Close()

var resp maxTickResponse
body, err := io.ReadAll(res.Body)
Expand Down

0 comments on commit 8a4b0aa

Please sign in to comment.