Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
philipr-za committed Dec 21, 2021
1 parent 51c6168 commit ef3a112
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions base_layer/core/src/base_node/rpc/service.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
use std::convert::TryFrom;

use log::*;
use tari_common_types::types::Signature;
use tari_comms::protocol::rpc::{Request, Response, RpcStatus, Streaming};
use tari_crypto::tari_utilities::hex::Hex;
use tokio::sync::mpsc;

// Copyright 2020, The Tari Project
//
Expand Down Expand Up @@ -58,9 +61,6 @@ use crate::{
},
transactions::transaction::Transaction,
};
use log::*;
use tari_crypto::tari_utilities::hex::Hex;
use tokio::sync::mpsc;
const LOG_TARGET: &str = "c::base_node::rpc";

pub struct BaseNodeWalletRpcService<B> {
Expand Down
12 changes: 7 additions & 5 deletions base_layer/core/src/base_node/rpc/sync_utxos_by_block_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,19 @@
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

use std::{sync::Arc, time::Instant};

use log::*;
use tari_comms::protocol::rpc::RpcStatus;
use tari_crypto::tari_utilities::{hex::Hex, Hashable};
use tokio::{sync::mpsc, task};

use crate::{
blocks::BlockHeader,
chain_storage::{async_db::AsyncBlockchainDb, BlockchainBackend, PrunedOutput},
proto,
proto::base_node::{SyncUtxosByBlockRequest, SyncUtxosByBlockResponse},
};
use log::*;
use std::{sync::Arc, time::Instant};
use tari_comms::protocol::rpc::RpcStatus;
use tari_crypto::tari_utilities::{hex::Hex, Hashable};
use tokio::{sync::mpsc, task};

const LOG_TARGET: &str = "c::base_node::sync_rpc::sync_utxo_by_block_task";

Expand Down
3 changes: 2 additions & 1 deletion base_layer/wallet/tests/support/transaction_service_mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

use std::sync::Arc;

use futures::StreamExt;
use log::*;
use std::sync::Arc;
use tari_service_framework::{reply_channel, reply_channel::Receiver};
use tari_shutdown::ShutdownSignal;
use tari_wallet::transaction_service::{
Expand Down

0 comments on commit ef3a112

Please sign in to comment.