Skip to content

Commit 44e550e

Browse files
authored
fix: remove tcpproxy copy error handling
1 parent eb1303d commit 44e550e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/tcpproxy/tcp.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ func (p *TCPProxy) Handle(conn net.Conn) {
125125

126126
func pipe(client, server net.Conn) {
127127
doCopy := func(s, c net.Conn, cancel chan<- bool) {
128-
if _, err := io.Copy(s, c); err != nil {
129-
klog.Errorf("Error copying data: %v", err)
130-
}
128+
//nolint:errcheck // No need to catch these errors
129+
io.Copy(s, c)
131130
cancel <- true
132131
}
133132

0 commit comments

Comments
 (0)