Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
fix bug in conn.SetWriteDeadline
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed May 22, 2019
1 parent 4a96ae7 commit 1804298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (c *Conn) SetReadDeadline(t time.Time) error {
}

func (c *Conn) SetWriteDeadline(t time.Time) error {
return c.stream.SetReadDeadline(t)
return c.stream.SetWriteDeadline(t)
}

func (c *Conn) RemoteAddr() net.Addr {
Expand Down

0 comments on commit 1804298

Please sign in to comment.