Skip to content

Commit

Permalink
ignore if core pinning fails
Browse files Browse the repository at this point in the history
  • Loading branch information
HardhatChad committed Aug 8, 2024
1 parent f1888e8 commit d622978
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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."
Expand Down
4 changes: 1 addition & 3 deletions src/mine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d622978

Please sign in to comment.