Skip to content

Commit

Permalink
fix: correct error check in check connections
Browse files Browse the repository at this point in the history
  • Loading branch information
enocom committed Dec 7, 2022
1 parent 9d5db57 commit aea0991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func (c *Client) CheckConnections(ctx context.Context) error {
return
}
cErr := conn.Close()
if err != nil {
if cErr != nil {
errCh <- fmt.Errorf("%v: %v", inst, cErr)
}
}(m.inst)
Expand Down

0 comments on commit aea0991

Please sign in to comment.