fix: remove tcpproxy copy error handling

This commit is contained in:
Zadkiel Aharonian 2023-11-29 15:33:08 +01:00 committed by GitHub
parent eb1303da02
commit 44e550ea72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,9 +125,8 @@ func (p *TCPProxy) Handle(conn net.Conn) {
func pipe(client, server net.Conn) {
doCopy := func(s, c net.Conn, cancel chan<- bool) {
if _, err := io.Copy(s, c); err != nil {
klog.Errorf("Error copying data: %v", err)
}
//nolint:errcheck // No need to catch these errors
io.Copy(s, c)
cancel <- true
}