Add Conn.Close
This commit is contained in:
parent
ffb40d7843
commit
8f364a74df
6
conn.go
6
conn.go
|
|
@ -101,3 +101,9 @@ func (c *Conn) WriteAttrs(attrs []Attr) error {
|
||||||
c.bufs.Put(buf)
|
c.bufs.Put(buf)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Close the underlying connection. After this, all attempts to write onto the
|
||||||
|
// connection will return an error.
|
||||||
|
func (c *Conn) Close() error {
|
||||||
|
return c.s.Close()
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue