diff --git a/src/api3/config.rs b/src/api3/config.rs index df476581..6d51f05f 100644 --- a/src/api3/config.rs +++ b/src/api3/config.rs @@ -1,9 +1,9 @@ -use failure::*; -use std::collections::HashMap; +//use failure::*; +//use std::collections::HashMap; use crate::api::schema::*; use crate::api::router::*; -use serde_json::{json, Value}; +use serde_json::{json}; mod datastore; diff --git a/src/api3/config/datastore.rs b/src/api3/config/datastore.rs index 2e755512..cbb7910a 100644 --- a/src/api3/config/datastore.rs +++ b/src/api3/config/datastore.rs @@ -1,5 +1,5 @@ use failure::*; -use std::collections::HashMap; +//use std::collections::HashMap; use crate::api::schema::*; use crate::api::router::*; diff --git a/src/backup/chunk_store.rs b/src/backup/chunk_store.rs index b88370fa..04155542 100644 --- a/src/backup/chunk_store.rs +++ b/src/backup/chunk_store.rs @@ -87,7 +87,7 @@ fn lock_file>(filename: P, timeout: usize) -> Result bail!("unable to aquire lock {:?} - clock problems - {}", path, err); } } - std::thread::sleep_ms(100); + std::thread::sleep(std::time::Duration::from_millis(100)); } Ok(lockfile) }