Skip to content

Commit

Permalink
Nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Sep 21, 2023
1 parent 357f79d commit eebd5d0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cli/src/command/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,10 @@ pub async fn set_pow_command(
let wallet = unlock_wallet(storage_path, snapshot_path, password).await?;
// Need to get the current node, so it's not removed
let node = wallet.client().get_node().await?;
let mut client_options = ClientOptions::new()
let client_options = ClientOptions::new()
.with_node(node.url.as_ref())?
.with_local_pow(local_pow);
if let Some(worker_count) = worker_count {
client_options = client_options.with_pow_worker_count(worker_count);
}
.with_local_pow(local_pow)
.with_pow_worker_count(worker_count);
wallet.set_client_options(client_options).await?;

Ok(wallet)
Expand Down

0 comments on commit eebd5d0

Please sign in to comment.