From a0f02d06d7a67081802e9862ce885210630db707 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 16 Nov 2023 16:47:00 +0100 Subject: [PATCH] lib/handshake: typo fix after ef80a89a2419d4cd8efbb87d46619306fe0766a3: SetReadDeadline -> SetWriteDeadline Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5327 --- lib/handshake/buffered_conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/handshake/buffered_conn.go b/lib/handshake/buffered_conn.go index f50adce69c..b496ee5e74 100644 --- a/lib/handshake/buffered_conn.go +++ b/lib/handshake/buffered_conn.go @@ -69,7 +69,7 @@ func (bc *BufferedConn) SetReadDeadline(t time.Time) error { // Deadline is checked on each Write call. func (bc *BufferedConn) SetWriteDeadline(t time.Time) error { bc.writeDeadline = t - return bc.Conn.SetReadDeadline(t) + return bc.Conn.SetWriteDeadline(t) } // Read reads up to len(p) from bc to p.