Update go version (#603)

Removed ioctl code and remove exception from lint action
This commit is contained in:
Maycon Santos
2022-12-04 13:22:21 +01:00
committed by GitHub
parent d029136d3d
commit d2d5d4b4b9
14 changed files with 22 additions and 30 deletions

View File

@ -8,8 +8,8 @@ import (
log "github.com/sirupsen/logrus"
"github.com/vishvananda/netlink"
"golang.org/x/sys/unix"
"io"
"io/fs"
"io/ioutil"
"math"
"os"
"path/filepath"
@ -295,7 +295,7 @@ func loadModule(name, path string) error {
// first try finit_module(2), then init_module(2)
err = unix.FinitModule(int(f.Fd()), "", 0)
if errors.Is(err, unix.ENOSYS) {
buf, err := ioutil.ReadAll(f)
buf, err := io.ReadAll(f)
if err != nil {
return err
}