From d622978cbd150c6f41a9ac9e0f026c7cf6f3f35b Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Thu, 8 Aug 2024 05:05:41 +0000 Subject: [PATCH] ignore if core pinning fails --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/mine.rs | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ebf11a54..d0a663bc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2772,7 +2772,7 @@ dependencies = [ [[package]] name = "ore-cli" -version = "2.0.1" +version = "2.0.2" dependencies = [ "bincode", "bs58 0.5.1", diff --git a/Cargo.toml b/Cargo.toml index a53a8221..d422a180 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ore-cli" -version = "2.0.1" +version = "2.0.2" edition = "2021" license = "Apache-2.0" description = "A command line interface for ORE cryptocurrency mining." diff --git a/src/mine.rs b/src/mine.rs index d2804408..6c283b65 100644 --- a/src/mine.rs +++ b/src/mine.rs @@ -92,9 +92,7 @@ impl Miner { } // Pin to core - if !core_affinity::set_for_current(i) { - return (0, 0, Hash::default()); - } + let _ = core_affinity::set_for_current(i); // Start hashing let timer = Instant::now();