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 18, 2023
1 parent 748ac93 commit 48df6d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/near.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ impl NearClient {
);
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 48df6d5

Please sign in to comment.