Skip to content

Commit 976bb9e

Browse files
committed
Increase client timeout
New RPC migratewallet takes around 30sec to complete and the client times out first. Increase the timeout from default of 15sec to 60sec.
1 parent 5adeeae commit 976bb9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/src/client_sync/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ macro_rules! define_jsonrpc_minreq_client {
8383
let transport = jsonrpc::http::minreq_http::Builder::new()
8484
.url(url)
8585
.expect("jsonrpc v0.18, this function does not error")
86+
.timeout(std::time::Duration::from_secs(60))
8687
.build();
8788
let inner = jsonrpc::client::Client::with_transport(transport);
8889

@@ -99,6 +100,7 @@ macro_rules! define_jsonrpc_minreq_client {
99100
let transport = jsonrpc::http::minreq_http::Builder::new()
100101
.url(url)
101102
.expect("jsonrpc v0.18, this function does not error")
103+
.timeout(std::time::Duration::from_secs(60))
102104
.basic_auth(user.unwrap(), pass)
103105
.build();
104106
let inner = jsonrpc::client::Client::with_transport(transport);

0 commit comments

Comments
 (0)