[#9999] health: Drop unused

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-10-08 10:42:55 +03:00
parent 21841df9f7
commit c3181d7759
Signed by: dstepanov-yadro
GPG key ID: 237AF1A763293BC0

View file

@ -5,7 +5,6 @@ import (
"sync"
"github.com/vishvananda/netlink"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
@ -27,11 +26,6 @@ func NewNetlinkWatcher(d Multidialer) *NetlinkWatcher {
}
func (w *NetlinkWatcher) Start() error {
ns, err := netns.Get()
if err != nil {
return err
}
if err := netlink.LinkSubscribe(w.linkUpdates, w.done); err != nil {
return err
}
@ -41,11 +35,11 @@ func (w *NetlinkWatcher) Start() error {
}
w.wg.Add(1)
go w.watch(ns)
go w.watch()
return nil
}
func (w *NetlinkWatcher) watch(ns netns.NsHandle) {
func (w *NetlinkWatcher) watch() {
defer w.wg.Done()
for {