Merge remote-tracking branch 'origin/v0.4.1-dev' into v0.5.0-dev

This commit is contained in:
Mike Zak 2020-06-07 14:21:49 +03:00
commit e5810d023e

View File

@ -10,7 +10,6 @@ import (
"os"
"path/filepath"
"runtime"
"runtime/debug"
"runtime/pprof"
"strings"
"time"
@ -265,12 +264,6 @@ func main() {
// Use all processor cores.
runtime.GOMAXPROCS(runtime.NumCPU())
// Block and transaction processing can cause bursty allocations. This
// limits the garbage collector from excessively overallocating during
// bursts. This value was arrived at with the help of profiling live
// usage.
debug.SetGCPercent(10)
// Up some limits.
if err := limits.SetLimits(); err != nil {
fmt.Fprintf(os.Stderr, "failed to set limits: %s\n", err)