Skip to content

Commit 848f5de

Browse files
authored
nit: increase verbosity of espat NetNotify error (#684)
espat: increase verbosity of espat NetNotify error
1 parent 4a0bcba commit 848f5de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

espat/espat.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (d *Device) NetDisconnect() {
122122
}
123123

124124
func (d *Device) NetNotify(cb func(netlink.Event)) {
125-
// Not supported
125+
fmt.Printf("\r\n%s\r\n", netlink.ErrNotSupported)
126126
}
127127

128128
func (d *Device) GetHostByName(name string) (netip.Addr, error) {
@@ -473,7 +473,6 @@ func (d *Device) parseIPD(end int) error {
473473
}
474474

475475
// load up the socket data
476-
//d.data = append(d.data, d.response[e+1:end]...)
477476
d.data = append(d.data, d.response[e+1:e+1+v]...)
478477
return nil
479478
}

0 commit comments

Comments
 (0)