Skip to content

Commit

Permalink
wip - update connect options to match local WRS
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Sep 17, 2023
1 parent ecbd664 commit 3dcd910
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/modules/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ impl Connect {
let url = argv.first().cloned().or_else(|| ctx.wallet().settings().get(WalletSettings::Server));
let network_type = ctx.wallet().network_id()?;
let url = ctx.wallet().rpc_client().parse_url_with_network_type(url, network_type.into()).map_err(|e| e.to_string())?;
let options = ConnectOptions { block_async_connect: true, strategy: ConnectStrategy::Fallback, url, timeout: None };
let options = ConnectOptions { block_async_connect: true, strategy: ConnectStrategy::Fallback, url, ..Default::default() };
ctx.wallet().rpc_client().connect(options).await.map_err(|e| e.to_string())?;
Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion cli/src/modules/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Node {
block_async_connect: true,
strategy: ConnectStrategy::Fallback,
url: Some(url),
timeout: None,
..Default::default()
};
for _ in 0..5 {
sleep(Duration::from_millis(1000)).await;
Expand Down

0 comments on commit 3dcd910

Please sign in to comment.