From 2d99b2b93ac9872ed2425286397a9e6b6c845c39 Mon Sep 17 00:00:00 2001 From: Jedrzej Stuczynski Date: Thu, 30 Jan 2020 10:19:55 +0000 Subject: [PATCH] Fixed validator compilation error --- validator/src/validator/mod.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/validator/src/validator/mod.rs b/validator/src/validator/mod.rs index 26f031fab5..4cd4891255 100644 --- a/validator/src/validator/mod.rs +++ b/validator/src/validator/mod.rs @@ -1,8 +1,5 @@ use crate::validator::config::Config; -use crypto::identity::{ - DummyMixIdentityKeyPair, DummyMixIdentityPrivateKey, DummyMixIdentityPublicKey, - MixnetIdentityKeyPair, MixnetIdentityPrivateKey, MixnetIdentityPublicKey, -}; +use crypto::identity::{DummyMixIdentityKeyPair, MixnetIdentityKeyPair}; use directory_client::presence::Topology; use healthcheck::HealthChecker; use log::{debug, error, info}; @@ -13,20 +10,15 @@ use topology::NymTopology; pub mod config; // allow for a generic validator -pub struct Validator -where - IDPair: MixnetIdentityKeyPair, - Priv: MixnetIdentityPrivateKey, - Pub: MixnetIdentityPublicKey, -{ +pub struct Validator { config: Config, #[allow(dead_code)] identity_keypair: IDPair, - heath_check: HealthChecker, + heath_check: HealthChecker, } // but for time being, since it's a dummy one, have it use dummy keys -impl Validator { +impl Validator { pub fn new(config: Config) -> Self { debug!("validator new");