Skip to content

Commit

Permalink
fix importShadow, fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
defo89 committed Apr 12, 2024
1 parent 63ddf51 commit dd821ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion internal/util/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit dd821ec

Please sign in to comment.