We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d4a2e7 + a41c529 commit 5a023ffCopy full SHA for 5a023ff
src/cli.rs
@@ -21,7 +21,7 @@ pub struct Cli {
21
pub address: Option<String>,
22
23
/// Number of worker threads to use for mining.
24
- #[arg(long, default_value_t = 24)]
+ #[arg(long, default_value_t = std::thread::available_parallelism().map(|n| n.get() as u32).unwrap_or(24))]
25
pub threads: u32,
26
27
/// Optional secret key (hex-encoded) to mine with.
0 commit comments