Skip to content

Commit 28da3eb

Browse files
committed
timeout 30m
1 parent 7ddf132 commit 28da3eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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
@@ -5,7 +5,7 @@ edition = "2021"
55
license-file = "LICENSE"
66
name = "lebai_sdk"
77
repository = "https://github.com/lebai-robotics/lebai-sdk.rs"
8-
version = "0.2.25"
8+
version = "0.2.26"
99

1010
[workspace]
1111
members = [

src/rpc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use std::sync::Arc;
2828
async fn connect_ws(ip: &str, simu: bool) -> Result<Client> {
2929
let port: u16 = if simu { 3030 } else { 3031 };
3030
let mut builder = WsClientBuilder::default();
31-
builder = builder.request_timeout(Duration::MAX);
31+
builder = builder.request_timeout(Duration::from_secs(30 * 60));
3232
#[cfg(not(target_family = "wasm"))]
3333
let builder = builder.enable_ws_ping(PingConfig::new());
3434
builder.build(format!("ws://{}:{}", ip, port)).await.map_err(|e| e.to_string())

0 commit comments

Comments
 (0)