Remove the time dependency where possible (#8100)

This commit is contained in:
Pierre Krieger
2018-03-14 12:29:52 +01:00
committed by Marek Kotewicz
parent 5c47116889
commit 113c35af0a
41 changed files with 169 additions and 179 deletions

View File

@@ -32,7 +32,7 @@ use light::provider::LightProvider;
use network::{NodeId, PeerId};
use parking_lot::RwLock;
use time::Duration;
use std::time::Duration;
use light::cache::Cache;
const NETWORK_ID: u64 = 0xcafebabe;
@@ -218,7 +218,7 @@ impl TestNet<Peer> {
// skip full verification because the blocks are bad.
config.verify_full = false;
let cache = Arc::new(Mutex::new(Cache::new(Default::default(), Duration::hours(6))));
let cache = Arc::new(Mutex::new(Cache::new(Default::default(), Duration::from_secs(6 * 3600))));
let db = kvdb_memorydb::create(0);
let client = LightClient::new(
config,