mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 16:36:52 +01:00
cpupick: Move AvoidCPUs from util into cpupick as Avoid
This commit is contained in:
1 parent
73d26dd87d
commit
36579bae03
6 files changed
+35
-29
No files matched your search
@@ -443,7 +443,7 @@ func configureAvoidCPUs(c *config.C, l *slog.Logger, configTest bool) error {
|
||||
if len(cpus) == 0 {
|
||||
return nil
|
||||
}
|
||||
if err := util.AvoidCPUs(cpus, !configTest); err != nil {
|
||||
if err := cpupick.Avoid(cpus, !configTest); err != nil {
|
||||
if errors.Is(err, errors.ErrUnsupported) {
|
||||
l.Warn("tun.avoid_cpus is only supported on Linux; ignoring")
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user