forked from mirror/websocket
fix typo in conn.go
This commit is contained in:
parent
a6366fbf9d
commit
6af932933a
2
conn.go
2
conn.go
|
@ -520,7 +520,7 @@ func (c *Conn) WriteMessage(messageType int, data []byte) error {
|
||||||
// SetWriteDeadline sets the write deadline on the underlying network
|
// SetWriteDeadline sets the write deadline on the underlying network
|
||||||
// connection. After a write has timed out, the websocket state is corrupt and
|
// connection. After a write has timed out, the websocket state is corrupt and
|
||||||
// all future writes will return an error. A zero value for t means writes will
|
// all future writes will return an error. A zero value for t means writes will
|
||||||
// not time out
|
// not time out.
|
||||||
func (c *Conn) SetWriteDeadline(t time.Time) error {
|
func (c *Conn) SetWriteDeadline(t time.Time) error {
|
||||||
c.writeDeadline = t
|
c.writeDeadline = t
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue