api: pass ms for sync timeout param

This commit is contained in:
Alexandre Franke 2019-06-05 19:32:09 +02:00
parent f17c87b8c0
commit 93bb860559

View file

@ -77,7 +77,7 @@ pub fn sync(bk: &Backend, new_since: Option<String>, 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)?;