Skip to content

Commit d622978

Browse files
committed
ignore if core pinning fails
1 parent f1888e8 commit d622978

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ore-cli"
3-
version = "2.0.1"
3+
version = "2.0.2"
44
edition = "2021"
55
license = "Apache-2.0"
66
description = "A command line interface for ORE cryptocurrency mining."

src/mine.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ impl Miner {
9292
}
9393

9494
// Pin to core
95-
if !core_affinity::set_for_current(i) {
96-
return (0, 0, Hash::default());
97-
}
95+
let _ = core_affinity::set_for_current(i);
9896

9997
// Start hashing
10098
let timer = Instant::now();

0 commit comments

Comments
 (0)