Bump http-api-client default timeout to 30 sec (#4917)

This commit is contained in:
Jon Häggblad
2024-09-23 15:45:47 +02:00
committed by GitHub
parent 95ec91daa1
commit 2a94ce6443
+3 -1
View File
@@ -18,7 +18,9 @@ pub use user_agent::UserAgent;
mod user_agent;
pub const DEFAULT_TIMEOUT: Duration = Duration::from_secs(10);
// The timeout is relatively high as we are often making requests over the mixnet, where latency is
// high and chatty protocols take a while to complete.
pub const DEFAULT_TIMEOUT: Duration = Duration::from_secs(30);
pub type PathSegments<'a> = &'a [&'a str];
pub type Params<'a, K, V> = &'a [(K, V)];