Skip to content

Commit 4131226

Browse files
committed
Use number of CPUs as default for workers count
Keep it simple and just use the number of CPUs as the default.
1 parent d03ae13 commit 4131226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func ExecuteE() error {
5555
}
5656

5757
func init() {
58-
rootCmd.PersistentFlags().IntVar(&rootCmdSettings.workers, "concurrent", 2*runtime.NumCPU(), "limit of concurrent processing")
58+
rootCmd.PersistentFlags().IntVar(&rootCmdSettings.workers, "concurrent", runtime.NumCPU(), "limit of concurrent processing")
5959
rootCmd.PersistentFlags().StringVar(&rootCmdSettings.logfile, "logfile", "", "write logs into file")
6060

6161
_ = rootCmd.PersistentFlags().MarkHidden("logfile")

0 commit comments

Comments
 (0)