Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka committed Mar 20, 2018
1 parent ff483c0 commit 06b84dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions parity/export_hardcoded_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

use std::sync::{Arc, Weak};
use std::time::Duration;

use ethcore::client::DatabaseCompactionProfile;
use ethcore::db::NUM_COLUMNS;
Expand All @@ -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 {
Expand Down Expand Up @@ -73,7 +74,7 @@ pub fn execute(cmd: ExportHsyncCmd) -> Result<String, String> {
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.
Expand Down

0 comments on commit 06b84dc

Please sign in to comment.