From 8891623fd7f21dfe4121551cb604cbe9f708b2ef Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 25 May 2024 12:28:10 +0800 Subject: [PATCH] aaaa --- miner/docs/updates.md | 1 - miner/src/main.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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--