lib/handshake: typo fix after ef80a89a24: SetReadDeadline -> SetWriteDeadline

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5327
This commit is contained in:
Aliaksandr Valialkin 2023-11-16 16:47:00 +01:00
parent ef80a89a24
commit a0f02d06d7
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -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.