From a3f5c6a5db214ec5302bb8ac30eb10b89ea9a2cc Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Mon, 20 Jan 2020 16:38:55 +0100 Subject: [PATCH] remove conn.Close --- conn.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/conn.go b/conn.go index 49beb228..2326cec3 100644 --- a/conn.go +++ b/conn.go @@ -25,10 +25,6 @@ func NewConn(nconn net.Conn) *Conn { } } -func (c *Conn) Close() error { - return c.nconn.Close() -} - func (c *Conn) ReadRequest() (*Request, error) { c.nconn.SetReadDeadline(time.Now().Add(_READ_DEADLINE)) return requestDecode(c.nconn)