Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
acud committed Sep 19, 2024
1 parent 12f9d36 commit c56e682
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions k2pow-service/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ async fn consume(
};
let handle = tokio::task::spawn_blocking(move || -> Result<u64, post::pow::Error> {
let pool = create_thread_pool(cores, |_| {}).unwrap();
let res = pool.install(|| -> Result<u64, post::pow::Error> {
pool.install(|| -> Result<u64, post::pow::Error> {
let pow = PoW::new(randomx_flags).unwrap();
tracing::debug!(
"proving k2pow: nonce group: {}, challenge: {}, difficulty: {}, miner {}",
Expand All @@ -189,9 +189,7 @@ async fn consume(
pow.prove(job.nonce_group, &job.challenge, &job.difficulty, &job.miner)?;
tracing::debug!("k2pow result: {}", res);
Ok(res)
});

res
})
})
.await;

Expand Down

0 comments on commit c56e682

Please sign in to comment.