Removed unused imports
This commit is contained in:
@@ -3,7 +3,6 @@ use crate::config::persistance::pathfinder::MixNodePathfinder;
|
||||
use clap::{App, Arg, ArgMatches};
|
||||
use config::NymConfig;
|
||||
use crypto::encryption;
|
||||
use crypto::identity::MixIdentityKeyPair;
|
||||
use pemstore::pemstore::PemStore;
|
||||
|
||||
pub fn command_args<'a, 'b>() -> clap::App<'a, 'b> {
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
use crate::commands::override_config;
|
||||
use crate::config::persistance::pathfinder::MixNodePathfinder;
|
||||
use crate::config::Config;
|
||||
use crate::node;
|
||||
use crate::node::MixNode;
|
||||
use clap::{App, Arg, ArgMatches};
|
||||
use config::NymConfig;
|
||||
use pemstore::pemstore::PemStore;
|
||||
|
||||
pub fn command_args<'a, 'b>() -> App<'a, 'b> {
|
||||
App::new("run")
|
||||
|
||||
@@ -10,18 +10,6 @@ pub struct MixNodePathfinder {
|
||||
}
|
||||
|
||||
impl MixNodePathfinder {
|
||||
pub fn new(id: String) -> Self {
|
||||
let os_config_dir = dirs::config_dir().unwrap(); // grabs the OS default config dir
|
||||
let config_dir = os_config_dir.join("nym").join("mixnodes").join(id);
|
||||
let private_sphinx_key = config_dir.join("private.pem");
|
||||
let public_sphinx_key = config_dir.join("public.pem");
|
||||
MixNodePathfinder {
|
||||
config_dir,
|
||||
private_sphinx_key,
|
||||
public_sphinx_key,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new_from_config(config: &Config) -> Self {
|
||||
MixNodePathfinder {
|
||||
config_dir: config.get_config_file_save_location(),
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
use clap::{App, ArgMatches};
|
||||
use log::*;
|
||||
use std::process;
|
||||
|
||||
pub mod built_info;
|
||||
mod commands;
|
||||
|
||||
@@ -9,8 +9,6 @@ use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
const METRICS_INTERVAL: u64 = 3;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct MetricsReporter {
|
||||
received: u64,
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use crate::config::persistance::pathfinder::MixNodePathfinder;
|
||||
use crate::config::Config;
|
||||
use crate::mix_peer::MixPeer;
|
||||
use crate::node;
|
||||
use crate::node::metrics::MetricsReporter;
|
||||
use crypto::encryption;
|
||||
use futures::channel::mpsc;
|
||||
@@ -11,7 +10,6 @@ use log::*;
|
||||
use pemstore::pemstore::PemStore;
|
||||
use sphinx::header::delays::Delay as SphinxDelay;
|
||||
use sphinx::{ProcessedPacket, SphinxPacket};
|
||||
use std::net::SocketAddr;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
use tokio::prelude::*;
|
||||
|
||||
Reference in New Issue
Block a user