Skip to content

Commit 76f83d1

Browse files
committed
fix: use the right uber maxprocs package
1 parent 265bfde commit 76f83d1

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

cmd/onex-apiserver/apiserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package main
1111
import (
1212
"os"
1313

14-
_ "go.uber.org/automaxprocs"
14+
_ "go.uber.org/automaxprocs/maxprocs"
1515
"k8s.io/component-base/cli"
1616
_ "k8s.io/component-base/logs/json/register" // for JSON log format registration
1717
_ "k8s.io/component-base/metrics/prometheus/clientgo" // load all the prometheus client-go plugins

cmd/onex-cacheserver/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
package main
1010

1111
import (
12-
_ "go.uber.org/automaxprocs"
12+
_ "go.uber.org/automaxprocs/maxprocs"
1313

1414
"github.com/superproj/onex/cmd/onex-cacheserver/app"
1515
)

cmd/onex-controller-manager/controller-manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package main
1111
import (
1212
"os"
1313

14-
_ "go.uber.org/automaxprocs"
14+
_ "go.uber.org/automaxprocs/maxprocs"
1515
"k8s.io/component-base/cli"
1616
_ "k8s.io/component-base/logs/json/register" // for JSON log format registration
1717
_ "k8s.io/component-base/metrics/prometheus/clientgo" // load all the prometheus client-go plugin

cmd/onex-fakeserver/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
package main
1010

1111
import (
12-
_ "go.uber.org/automaxprocs"
12+
_ "go.uber.org/automaxprocs/maxprocs"
1313

1414
"github.com/superproj/onex/cmd/onex-fakeserver/app"
1515
)

cmd/onex-gateway/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
package main
99

1010
import (
11-
_ "go.uber.org/automaxprocs"
11+
_ "go.uber.org/automaxprocs/maxprocs"
1212

1313
"github.com/superproj/onex/cmd/onex-gateway/app"
1414
)

cmd/onex-miner-controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package main
1111
import (
1212
"os"
1313

14-
_ "go.uber.org/automaxprocs"
14+
_ "go.uber.org/automaxprocs/maxprocs"
1515
"k8s.io/component-base/cli"
1616
_ "k8s.io/component-base/logs/json/register" // for JSON log format registration
1717
_ "k8s.io/component-base/metrics/prometheus/clientgo" // load all the prometheus client-go plugin

cmd/onex-minerset-controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ package main
1010
import (
1111
"os"
1212

13-
_ "go.uber.org/automaxprocs"
13+
_ "go.uber.org/automaxprocs/maxprocs"
1414
"k8s.io/component-base/cli"
1515
_ "k8s.io/component-base/logs/json/register" // for JSON log format registration
1616
_ "k8s.io/component-base/metrics/prometheus/clientgo" // load all the prometheus client-go plugin

cmd/onex-nightwatch/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
package main
99

1010
import (
11-
_ "go.uber.org/automaxprocs"
11+
_ "go.uber.org/automaxprocs/maxprocs"
1212

1313
"github.com/superproj/onex/cmd/onex-nightwatch/app"
1414
)

cmd/onex-toyblc/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
package main
99

1010
import (
11-
_ "go.uber.org/automaxprocs"
11+
_ "go.uber.org/automaxprocs/maxprocs"
1212

1313
"github.com/superproj/onex/cmd/onex-toyblc/app"
1414
)

cmd/onex-usercenter/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package main
99

1010
import (
1111
// Importing the package to automatically set GOMAXPROCS.
12-
_ "go.uber.org/automaxprocs"
12+
_ "go.uber.org/automaxprocs/maxprocs"
1313

1414
"github.com/superproj/onex/cmd/onex-usercenter/app"
1515
)

0 commit comments

Comments
 (0)