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 a550069
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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 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 a550069

Please sign in to comment.