Skip to content

Commit

Permalink
fix unclosed client
Browse files Browse the repository at this point in the history
Signed-off-by: lance6716 <[email protected]>
  • Loading branch information
lance6716 committed Nov 30, 2022
1 parent 3c025e0 commit 25cd4d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions br/pkg/lightning/restore/precheck_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,8 @@ func (ci *CDCPITRCheckItem) Check(ctx context.Context) (*CheckResult, error) {
if err != nil {
return nil, errors.Trace(err)
}
//nolint: errcheck
defer ci.etcdCli.Close()
}

errorMsg := make([]string, 0, 2)
Expand Down

0 comments on commit 25cd4d5

Please sign in to comment.