From 33ca464d3f9e176695ee9d01c95c6397961ac3ff Mon Sep 17 00:00:00 2001 From: Jules de Smit Date: Wed, 8 Sep 2021 18:11:53 +0200 Subject: [PATCH] Fix errors --- phase1-coordinator/src/coordinator.rs | 1 - phase1-coordinator/src/objects/round.rs | 5 ++--- phase1-coordinator/src/storage/disk.rs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/phase1-coordinator/src/coordinator.rs b/phase1-coordinator/src/coordinator.rs index e6fe21ae..608a279d 100644 --- a/phase1-coordinator/src/coordinator.rs +++ b/phase1-coordinator/src/coordinator.rs @@ -22,7 +22,6 @@ use crate::{ Locator, LocatorPath, Object, - StorageAction, StorageLocator, StorageObject, }, diff --git a/phase1-coordinator/src/objects/round.rs b/phase1-coordinator/src/objects/round.rs index 8d05e50c..43917c4f 100644 --- a/phase1-coordinator/src/objects/round.rs +++ b/phase1-coordinator/src/objects/round.rs @@ -8,7 +8,6 @@ use crate::{ Locator, LocatorPath, Object, - RemoveAction, StorageAction, StorageLocator, UpdateAction, @@ -642,7 +641,7 @@ impl Round { pub fn initialize_verifier_response_files( &self, environment: &Environment, - storage: &mut impl Storage, + storage: &mut Disk, participant: &Participant, chunk_id: u64, locators: &LockedLocators, @@ -668,7 +667,7 @@ impl Round { /// Returns previous contribution, current contribution and next contribution paths pub(crate) fn get_chunk_locators_for_verifier( &self, - storage: &impl Storage, + storage: &Disk, participant: &Participant, chunk_id: u64, contribution_id: u64, diff --git a/phase1-coordinator/src/storage/disk.rs b/phase1-coordinator/src/storage/disk.rs index c890c94b..072aa553 100644 --- a/phase1-coordinator/src/storage/disk.rs +++ b/phase1-coordinator/src/storage/disk.rs @@ -24,7 +24,7 @@ use std::{ collections::{BTreeSet, HashMap, HashSet}, convert::TryFrom, fs::{self, File, OpenOptions}, - io::{self, Error, ErrorKind, Write}, + io::{Error, ErrorKind, Write}, path::{Path, PathBuf}, str::FromStr, sync::{Arc, RwLock},