mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 18:21:20 +00:00
c9ca5857f8
* Avoid automaxprocs default logger to printf * Merge branch 'master' into maxprocs * gofmt, goimports * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * gazelle for docker images * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs * fix docker * Merge refs/heads/master into maxprocs * Merge refs/heads/master into maxprocs
17 lines
338 B
Go
17 lines
338 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 (
|
|
"go.uber.org/automaxprocs/maxprocs"
|
|
)
|
|
|
|
// Initialize Uber maxprocs.
|
|
func init() {
|
|
_, err := maxprocs.Set()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|