memlogd: use net.Conn rather than *net.UnixConn

There's no need to be so specific about the connection implementation.

Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
David Scott 2018-07-05 11:44:49 +01:00
parent c92af038fb
commit 3e742018d6

View File

@ -37,12 +37,12 @@ const (
) )
type queryMessage struct { type queryMessage struct {
conn *net.UnixConn conn net.Conn
mode logMode mode logMode
} }
type connListener struct { type connListener struct {
conn *net.UnixConn conn net.Conn
cond *sync.Cond // condition and mutex used to notify listeners of more data cond *sync.Cond // condition and mutex used to notify listeners of more data
buffer bytes.Buffer buffer bytes.Buffer
err error err error