From dd821ecdbda5f5ced0317897295915f42b858ae6 Mon Sep 17 00:00:00 2001 From: Dmitri Fedotov Date: Fri, 12 Apr 2024 18:12:19 +0300 Subject: [PATCH] fix importShadow, fmt --- internal/cmd/command.go | 4 ++-- internal/util/interface.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cmd/command.go b/internal/cmd/command.go index 3a736c4..b0328a4 100644 --- a/internal/cmd/command.go +++ b/internal/cmd/command.go @@ -60,8 +60,8 @@ func init() { os.Exit(1) } - source := rand.NewSource(time.Now().UnixNano()) - rng := rand.New(source) + rsource := rand.NewSource(time.Now().UnixNano()) + rng := rand.New(rsource) cfg.RandDelay = rng.Intn(1000) + 1000 metrics.Registry.MustRegister(metr.SentError, metr.Error, metr.ArpResolveError, metr.SentPacketsPeer, metr.SentPackets, metr.RecvPackets, metr.CallbackDuration) diff --git a/internal/util/interface.go b/internal/util/interface.go index 937e8c6..db51a03 100644 --- a/internal/util/interface.go +++ b/internal/util/interface.go @@ -93,7 +93,7 @@ func GetInterfaceIP(name string, log logr.Logger) (string, error) { } return ip.String(), nil } - err = errors.New("Interface is not connected to the network") + err = errors.New("interface is not connected to the network") log.Error(err, "error finding interface ip") return "", err }