Skip to content

Commit

Permalink
Remove redundant shutdown field in cpu miner
Browse files Browse the repository at this point in the history
  • Loading branch information
MCozhusheck committed Oct 14, 2024
1 parent 621144c commit 00d31f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src-tauri/src/cpu_miner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ use std::path::PathBuf;
use std::sync::Arc;
use std::thread;
use tari_core::transactions::tari_amount::MicroMinotari;
use tari_shutdown::{Shutdown, ShutdownSignal};
use tari_shutdown::ShutdownSignal;
use tokio::sync::RwLock;

const RANDOMX_BLOCKS_PER_DAY: u64 = 360;
const LOG_TARGET: &str = "tari::universe::cpu_miner";

pub(crate) struct CpuMiner {
watcher: Arc<RwLock<ProcessWatcher<XmrigAdapter>>>,
miner_shutdown: Shutdown,
}

impl CpuMiner {
Expand All @@ -25,7 +24,6 @@ impl CpuMiner {
let process_watcher = ProcessWatcher::new(xmrig_adapter);
Self {
watcher: Arc::new(RwLock::new(process_watcher)),
miner_shutdown: Shutdown::new(),
}
}

Expand Down

0 comments on commit 00d31f6

Please sign in to comment.