Skip to content

Commit

Permalink
Bump linera-protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Twey committed Nov 25, 2024
1 parent 2ebf3b9 commit 9a0b0b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions client-worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ console_log = "1.0.0"
futures = "0.3.30"
js-sys = "0.3"
log = "0.4.21"
nonzero_lit = "0.1.2"
rand = "0.8.5"
serde = "=1.0.205"
serde-reflection = "0.4.0"
Expand Down
8 changes: 5 additions & 3 deletions client-worker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ type PersistentWallet = linera_client::persistent::Memory<Wallet>;
type ClientContext = linera_client::client_context::ClientContext<WebStorage, PersistentWallet>;
type ChainClient = linera_core::client::ChainClient<linera_rpc::node_provider::NodeProvider, WebStorage>;

// TODO get from config
// TODO(13): get from user
pub const OPTIONS: ClientOptions = ClientOptions {
send_timeout: std::time::Duration::from_millis(4000),
recv_timeout: std::time::Duration::from_millis(4000),
max_pending_message_bundles: 10,
wasm_runtime: Some(linera_execution::WasmRuntime::Wasmer),
max_concurrent_queries: None,
max_loaded_chains: nonzero_lit::usize!(40),
max_stream_queries: 10,
cache_size: 1000,
retry_delay: std::time::Duration::from_millis(1000),
Expand All @@ -68,8 +69,9 @@ pub const OPTIONS: ClientOptions = ClientOptions {
restrict_chain_ids_to: None,
long_lived_services: false,

// TODO: separate these out from the `ClientOptions` struct, since
// the apply only to the CLI/native client
// TODO(linera-protocol#2944): separate these out from the
// `ClientOptions` struct, since they apply only to the CLI/native
// client
tokio_threads: Some(1),
command: linera_client::client_options::ClientCommand::Keygen,
wallet_state_path: None,
Expand Down

0 comments on commit 9a0b0b4

Please sign in to comment.