File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,10 +112,25 @@ impl VssStore {
112112 let key_obfuscator = KeyObfuscator :: new ( obfuscation_master_key) ;
113113
114114 let sync_retry_policy = retry_policy ( ) ;
115- let blocking_client = VssClient :: new_with_headers (
115+ /* let blocking_client = VssClient::new_with_headers(
116116 base_url.clone(),
117117 sync_retry_policy,
118118 header_provider.clone(),
119+ );*/
120+ // Alby: use longer timeouts for VSS (rather than default 10 seconds)
121+ const ALBY_REQWEST_CLIENT_TIMEOUT : std:: time:: Duration = std:: time:: Duration :: from_secs ( 60 ) ;
122+ let client_with_custom_timeouts = reqwest:: Client :: builder ( )
123+ . timeout ( ALBY_REQWEST_CLIENT_TIMEOUT )
124+ . connect_timeout ( ALBY_REQWEST_CLIENT_TIMEOUT )
125+ . read_timeout ( ALBY_REQWEST_CLIENT_TIMEOUT )
126+ . build ( )
127+ . unwrap ( ) ;
128+
129+ let blocking_client = VssClient :: from_client_and_headers (
130+ base_url. clone ( ) ,
131+ client_with_custom_timeouts,
132+ sync_retry_policy,
133+ header_provider. clone ( ) ,
119134 ) ;
120135
121136 let runtime_handle = internal_runtime. handle ( ) ;
You can’t perform that action at this time.
0 commit comments