Skip to content
Snippets Groups Projects
Commit 39b766ab authored by Jaime Martinez's avatar Jaime Martinez :red_circle: Committed by Grzegorz Bizon
Browse files

Remove FF_AUTO_MAX_PROCS flag

parent 18aa89cf
No related branches found
No related tags found
1 merge request!987Remove FF_AUTO_MAX_PROCS flag
......@@ -49,10 +49,3 @@ var RateLimiterCloseConnection = Feature{
EnvVariable: "FF_RATE_LIMITER_CLOSE_CONNECTION",
defaultEnabled: false,
}
// AutoMaxProcs enables use of go.uber.org/automaxprocs/maxprocs in the main
// package
var AutoMaxProcs = Feature{
EnvVariable: "FF_AUTO_MAX_PROCS",
defaultEnabled: true,
}
......@@ -13,18 +13,15 @@ import (
"go.uber.org/automaxprocs/maxprocs"
cfg "gitlab.com/gitlab-org/gitlab-pages/internal/config"
"gitlab.com/gitlab-org/gitlab-pages/internal/feature"
"gitlab.com/gitlab-org/gitlab-pages/internal/logging"
"gitlab.com/gitlab-org/gitlab-pages/internal/validateargs"
"gitlab.com/gitlab-org/gitlab-pages/metrics"
)
func init() {
if feature.AutoMaxProcs.Enabled() {
_, err := maxprocs.Set()
if err != nil {
log.WithError(err).Error("could not set automaxprocs")
}
_, err := maxprocs.Set()
if err != nil {
log.WithError(err).Error("could not set automaxprocs")
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment