Skip to content

Commit

Permalink
chore: use connect timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksuss committed Jul 17, 2023
1 parent 748ac93 commit 8d99dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/near.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl NearClient {
reqwest::header::HeaderValue::from_static("application/json"),
);
let client = reqwest::Client::builder()
.timeout(std::time::Duration::from_secs(TIMEOUT))
.connect_timeout(std::time::Duration::from_secs(TIMEOUT))
.default_headers(headers)
.build()
.map(JsonRpcClient::with)
Expand Down

0 comments on commit 8d99dc3

Please sign in to comment.