From 06b84dccac17fa8108f89360d2291c2a9749d01d Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 20 Mar 2018 11:34:20 +0100 Subject: [PATCH] Fix compilation --- parity/export_hardcoded_sync.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parity/export_hardcoded_sync.rs b/parity/export_hardcoded_sync.rs index 0946cc248ce..3e253b5a415 100644 --- a/parity/export_hardcoded_sync.rs +++ b/parity/export_hardcoded_sync.rs @@ -15,6 +15,7 @@ // along with Parity. If not, see . use std::sync::{Arc, Weak}; +use std::time::Duration; use ethcore::client::DatabaseCompactionProfile; use ethcore::db::NUM_COLUMNS; @@ -30,7 +31,7 @@ use user_defaults::UserDefaults; // Number of minutes before a given gas price corpus should expire. // Light client only. -const GAS_CORPUS_EXPIRATION_MINUTES: i64 = 60 * 6; +const GAS_CORPUS_EXPIRATION_MINUTES: u64 = 60 * 6; #[derive(Debug, PartialEq)] pub struct ExportHsyncCmd { @@ -73,7 +74,7 @@ pub fn execute(cmd: ExportHsyncCmd) -> Result { cmd.dirs.create_dirs(false, false, false)?; // TODO: configurable cache size. - let cache = LightDataCache::new(Default::default(), ::time::Duration::minutes(GAS_CORPUS_EXPIRATION_MINUTES)); + let cache = LightDataCache::new(Default::default(), Duration::from_secs(60 * GAS_CORPUS_EXPIRATION_MINUTES)); let cache = Arc::new(Mutex::new(cache)); // start client and create transaction queue.