From 93bb86055944c2ab3c9a7f32a0fd1f58faea4976 Mon Sep 17 00:00:00 2001 From: Alexandre Franke Date: Wed, 5 Jun 2019 19:32:09 +0200 Subject: [PATCH] api: pass ms for sync timeout param --- fractal-matrix-api/src/backend/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fractal-matrix-api/src/backend/sync.rs b/fractal-matrix-api/src/backend/sync.rs index f76ce26c..109a582f 100644 --- a/fractal-matrix-api/src/backend/sync.rs +++ b/fractal-matrix-api/src/backend/sync.rs @@ -77,7 +77,7 @@ pub fn sync(bk: &Backend, new_since: Option, initial: bool) -> Result<() }; let timeout = time::Duration::from_secs(30); - params.push(("timeout", timeout.as_secs().to_string())); + params.push(("timeout", timeout.as_millis().to_string())); let baseu = bk.get_base_url(); let url = bk.url("sync", params)?;