mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 08:23:34 +01:00
lib/handshake: typo fix after ef80a89a24
: SetReadDeadline -> SetWriteDeadline
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5327
This commit is contained in:
parent
ef80a89a24
commit
a0f02d06d7
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user