Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteregrets committed Nov 12, 2024
1 parent 2803b70 commit 741b8a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl ClientConfig {
token: token.into().into(),
host_endpoint: HostEndpoints::default(),
connect_lazily: true,
connection_timeout: Duration::from_secs(10),
connection_timeout: Duration::from_secs(3),
request_timeout: Duration::from_secs(5),
user_agent: "s2-sdk-rust".to_string(),
}
Expand Down Expand Up @@ -659,7 +659,7 @@ impl ClientInner {
.connect_timeout(config.connection_timeout)
.timeout(config.request_timeout);

let channel = endpoint.connect_with_connector(connector).await.unwrap();
let channel = endpoint.connect_with_connector(connector).await?;
Ok(Self {
channel,
basin: None,
Expand Down

0 comments on commit 741b8a6

Please sign in to comment.