diff --git a/miner/docs/updates.md b/miner/docs/updates.md index c0c4c28..ea5cc00 100644 --- a/miner/docs/updates.md +++ b/miner/docs/updates.md @@ -11,7 +11,6 @@ > 就是卡常 反正现在在我的 5800x 上能跑到 700E/d (单线程) 了 - > 我预计在后面加一下多线程运行的时候加个总计效率 ## 0.2.15~16 diff --git a/miner/src/main.rs b/miner/src/main.rs index 65a8147..8c5a7aa 100644 --- a/miner/src/main.rs +++ b/miner/src/main.rs @@ -102,7 +102,7 @@ fn main() { let left = cli_arg.start % cli_arg.thread_count as u64; cli_arg.end = cli_arg.end.wrapping_add(left); - let mut threads = Vec::with_capacity(cli_arg.thread_count as usize); + let mut threads = vec![]; let now = chrono::Local::now().format("%Y-%m-%d_%H-%M-%S").to_string(); // namerena--