go.mod: bump github.com/mdlayher/netlink to v1.2.0

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher
2020-12-20 12:54:22 -05:00
committed by Brad Fitzpatrick
parent 80c94168ae
commit bfbd6b9241
3 changed files with 23 additions and 11 deletions

View File

@@ -52,10 +52,7 @@ func newOSMon(logf logger.Logf) (osMon, error) {
return &nlConn{logf: logf, conn: conn}, nil
}
func (c *nlConn) Close() error {
c.conn.SetDeadline(time.Unix(0, 0)) // abort any Receive in flight
return c.conn.Close()
}
func (c *nlConn) Close() error { return c.conn.Close() }
func (c *nlConn) Receive() (message, error) {
if len(c.buffered) == 0 {