Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Dec 20, 2024
1 parent 64a8a38 commit 94816b1
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/server/http/stats/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use axum::{
use log::{error, info};
use serde::Serialize;
use tari_core::proof_of_work::PowAlgorithm;
use tari_utilities::{encoding::Base58, epoch_time::EpochTime, hex::Hex};
use tari_utilities::{epoch_time::EpochTime, hex::Hex};
use tokio::sync::oneshot;

use super::MAX_ACCEPTABLE_HTTP_TIMEOUT;
Expand Down
2 changes: 1 addition & 1 deletion src/server/p2p/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ use tari_common::configuration::Network;
use tari_common_types::types::FixedHash;
use tari_core::proof_of_work::PowAlgorithm;
use tari_shutdown::ShutdownSignal;
use tari_utilities::{encoding::Base58, epoch_time::EpochTime, hex::Hex};
use tari_utilities::{epoch_time::EpochTime, hex::Hex};
use tokio::{
select,
sync::{
Expand Down
2 changes: 1 addition & 1 deletion src/sharechain/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use tari_core::{
PowAlgorithm,
},
};
use tari_utilities::{encoding::Base58, epoch_time::EpochTime, hex::Hex};
use tari_utilities::{epoch_time::EpochTime, hex::Hex};
use tokio::sync::{RwLock, RwLockReadGuard, RwLockWriteGuard};

use super::{
Expand Down
3 changes: 0 additions & 3 deletions src/sharechain/lmdb_block_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ fn resize_db(env: &Rkv<LmdbEnvironment>) {
pub trait BlockCache {
fn get(&self, hash: &BlockHash) -> Option<Arc<P2Block>>;
fn insert(&self, hash: BlockHash, block: Arc<P2Block>);
fn contains(&self, hash: &BlockHash) -> bool {
self.get(hash).is_some()
}
}

#[cfg(test)]
Expand Down
1 change: 0 additions & 1 deletion src/sharechain/p2chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ use std::{

use itertools::Itertools;
use log::*;
use minotari_app_grpc::tari_rpc::PowAlgo;
use tari_common_types::types::FixedHash;
use tari_core::proof_of_work::{lwma_diff::LinearWeightedMovingAverage, AccumulatedDifficulty, PowAlgorithm};
use tari_utilities::hex::Hex;
Expand Down
2 changes: 1 addition & 1 deletion src/sharechain/p2chain_level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl<T: BlockCache> P2ChainLevel<T> {
.read()
.expect("could not lock")
.keys()
.filter_map(|hash| self.block_cache.get(&hash))
.filter_map(|hash| self.block_cache.get(hash))
.collect()
}
}
Expand Down

0 comments on commit 94816b1

Please sign in to comment.