mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-05-02 03:02:54 -04:00
Only set gc percent if the flag is set (#4899)
* only set gc percent if the flag is set
This commit is contained in:
@@ -127,7 +127,9 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
runtimeDebug.SetGCPercent(ctx.GlobalInt(flags.SetGCPercent.Name))
|
||||
if ctx.IsSet(flags.SetGCPercent.Name) {
|
||||
runtimeDebug.SetGCPercent(ctx.GlobalInt(flags.SetGCPercent.Name))
|
||||
}
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
return debug.Setup(ctx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user