diff --git a/cmd/fireeth/tools_fix_withdrawals.go b/cmd/fireeth/tools_fix_withdrawals.go index 8f69b4df..adb4cb88 100644 --- a/cmd/fireeth/tools_fix_withdrawals.go +++ b/cmd/fireeth/tools_fix_withdrawals.go @@ -65,10 +65,7 @@ func createFixWithdrawalsE(logger *zap.Logger) firecore.CommandExecutor { maxConcurrency := sflags.MustGetInt(cmd, "max-concurrency") if maxConcurrency == 0 { - maxConcurrency = runtime.GOMAXPROCS(0) - if maxConcurrency < 1 { - maxConcurrency = 1 - } + maxConcurrency = max(runtime.GOMAXPROCS(0), 1) } if stop <= start {