Skip to content

Commit

Permalink
no-unsafe-eval feature
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Sep 16, 2023
1 parent 42b577f commit 86d1835
Show file tree
Hide file tree
Showing 4 changed files with 7 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 @@ -11,7 +11,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 = wrpc_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() };
wrpc_client.connect(options).await.map_err(|e| e.to_string())?;
} else {
terrorln!(ctx, "Unable to connect with non-wRPC client");
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
4 changes: 4 additions & 0 deletions rpc/wrpc/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ authors.workspace = true
include.workspace = true
license.workspace = true

[features]
no-unsafe-eval = ["workflow-core/no-unsafe-eval","workflow-rpc/no-unsafe-eval"]
default = []

[lib]
crate-type = ["cdylib", "lib"]

Expand Down
1 change: 1 addition & 0 deletions wallet/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ include.workspace = true
license.workspace = true

[features]
no-unsafe-eval = ["workflow-core/no-unsafe-eval","workflow-rpc/no-unsafe-eval"]
multi-user = []
legacy-rpc = []
default = ["legacy-rpc"]
Expand Down

0 comments on commit 86d1835

Please sign in to comment.