Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 33d8838

Browse files
Remove with_node_sync_disabled option (#133)
1 parent f6de4ee commit 33d8838

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cli-wallet"
3-
version = "1.0.0-beta.1"
3+
version = "1.0.0-beta.2"
44
authors = [ "IOTA Stiftung" ]
55
edition = "2021"
66
homepage = "https://iota.org"

src/command/account_manager.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ pub async fn init_command(
7474
let account_manager = AccountManager::builder()
7575
.with_secret_manager(secret_manager)
7676
.with_client_options(
77-
ClientOptions::new()
78-
.with_node(parameters.node.as_deref().unwrap_or("http://localhost:14265"))?
79-
.with_node_sync_disabled(),
77+
ClientOptions::new().with_node(parameters.node.as_deref().unwrap_or("http://localhost:14265"))?,
8078
)
8179
.with_storage_path(&storage_path)
8280
.with_coin_type(parameters.coin_type.unwrap_or(SHIMMER_COIN_TYPE))
@@ -128,7 +126,7 @@ pub async fn restore_command(manager: &AccountManager, path: String, password: &
128126

129127
pub async fn set_node_command(manager: &AccountManager, url: String) -> Result<(), Error> {
130128
manager
131-
.set_client_options(ClientOptions::new().with_node(&url)?.with_node_sync_disabled())
129+
.set_client_options(ClientOptions::new().with_node(&url)?)
132130
.await?;
133131

134132
Ok(())

0 commit comments

Comments
 (0)