mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
495e92ce9f
* add maxprocs * add prereqs * add tos and version pkg * add in all runtime packages Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
18 lines
412 B
Go
18 lines
412 B
Go
// Package maxprocs automatically sets GOMAXPROCS to match the Linux
|
|
// container CPU quota, if any. This will not override the environment
|
|
// variable of GOMAXPROCS.
|
|
package maxprocs
|
|
|
|
import (
|
|
log "github.com/sirupsen/logrus"
|
|
"go.uber.org/automaxprocs/maxprocs"
|
|
)
|
|
|
|
// Initialize Uber maxprocs.
|
|
func init() {
|
|
_, err := maxprocs.Set()
|
|
if err != nil {
|
|
log.WithError(err).Debug("Failed to set maxprocs")
|
|
}
|
|
}
|