Skip to content

Commit

Permalink
fix: unused import error
Browse files Browse the repository at this point in the history
  • Loading branch information
ermineJose committed Nov 25, 2024
1 parent 94c3bf8 commit 3726299
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion autonomi/src/client/archive_private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ impl Client {
debug!("Private archive successfully uploaded to the network");
private_archive_access_result
}
}
}
6 changes: 4 additions & 2 deletions autonomi/src/client/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ impl Client {

let key = NetworkAddress::from_chunk_address(ChunkAddress::new(addr)).to_record_key();
debug!("Converted chunk address to network record key: {:?}", key);

let get_cfg = GetRecordCfg {
get_quorum: Quorum::One,
retry_strategy: None,
Expand All @@ -244,7 +243,10 @@ impl Client {
debug!("Chunk deserialized successfully: {:?}", chunk);
Ok(chunk)
} else {
error!("Record kind mismatch: expected Chunk, got {:?}", header.kind);
error!(
"Record kind mismatch: expected Chunk, got {:?}",
header.kind
);
Err(NetworkError::RecordKindMismatch(RecordKind::Chunk).into())
}
}
Expand Down
4 changes: 2 additions & 2 deletions autonomi/src/client/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ impl Client {
path: PathBuf,
wallet: &EvmWallet,
) -> Result<DataAddr, UploadError> {
info!("Uploading file: {path:?}");
info!("Uploadings file: {path:?}");
#[cfg(feature = "loud")]
println!("Uploading file: {path:?}");
println!("Uploadings file: {path:?}");

let data = tokio::fs::read(path).await?;
let data = Bytes::from(data);
Expand Down
7 changes: 4 additions & 3 deletions autonomi/src/client/registers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,11 @@ impl Client {
let pk = owner.public_key();
let permissions = Permissions::new_with([pk]);

let register_created =
self.register_create_with_permissions(value, name, owner, permissions, wallet).await;
let reg_created = self
.register_create_with_permissions(value, name, owner, permissions, wallet)
.await;
debug!("Register created successfully");
register_created
reg_created
}

/// Creates a new Register with a name and an initial value and uploads it to the network.
Expand Down
3 changes: 1 addition & 2 deletions evmlib/src/testnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use alloy::providers::fillers::{
use alloy::providers::{Identity, ProviderBuilder, ReqwestProvider};
use alloy::signers::local::PrivateKeySigner;
use alloy::transports::http::{Client, Http};
use serde::de;

pub struct Testnet {
anvil: AnvilInstance,
Expand Down Expand Up @@ -150,7 +149,7 @@ pub async fn deploy_data_payments_contract(
.on_http(rpc_url.clone());

// Deploy the contract.
let deployed = DataPaymentsHandler::deploy(provider, token_address).await;
let deployed = DataPaymentsHandler::deploy(provider, token_address).await;
let address = *deployed.contract.address();
debug!("Deployed data payments contract at {address}");
deployed
Expand Down

0 comments on commit 3726299

Please sign in to comment.