summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2020-06-22 15:32:59 +0100
committerEmīls <emils@mullvad.net>2020-06-25 15:21:31 +0100
commit822e52dcfb8747c232b08f53a1d73724973d7ee4 (patch)
tree1d3aceba5abfc057834cf9e2448f8c63b26671ef
parentb83c1f9cec3a0f34eab34424d25be9f7e10390f5 (diff)
downloadmullvadvpn-822e52dcfb8747c232b08f53a1d73724973d7ee4.tar.xz
mullvadvpn-822e52dcfb8747c232b08f53a1d73724973d7ee4.zip
Allow consumer of mullvad-rpc to set request timeout
-rw-r--r--mullvad-rpc/src/rest.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mullvad-rpc/src/rest.rs b/mullvad-rpc/src/rest.rs
index dab6627ec6..d29feee9f0 100644
--- a/mullvad-rpc/src/rest.rs
+++ b/mullvad-rpc/src/rest.rs
@@ -329,7 +329,7 @@ pub struct RequestFactory {
host: String,
address: Option<IpAddr>,
path_prefix: Option<String>,
- timeout: Duration,
+ pub timeout: Duration,
}
@@ -547,7 +547,7 @@ pub async fn handle_error_response<T>(response: Response) -> Result<T> {
#[derive(Clone)]
pub struct MullvadRestHandle {
pub(crate) service: RequestServiceHandle,
- pub(crate) factory: RequestFactory,
+ pub factory: RequestFactory,
}
impl MullvadRestHandle {