From 766af58cd8275a7eb518e8a51d7ebd95b39a04fd Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 8 Feb 2019 08:10:28 -0800 Subject: [PATCH] Prune unnecessary test imports --- src/tvu.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/tvu.rs b/src/tvu.rs index c4215b2f85..4bf3a3a9fe 100644 --- a/src/tvu.rs +++ b/src/tvu.rs @@ -194,28 +194,19 @@ impl Service for Tvu { #[cfg(test)] pub mod tests { + use super::*; use crate::bank::Bank; use crate::blocktree::get_tmp_ledger_path; - use crate::blocktree::Blocktree; use crate::cluster_info::{ClusterInfo, Node}; use crate::entry::Entry; use crate::genesis_block::GenesisBlock; use crate::gossip_service::GossipService; use crate::packet::SharedBlob; - use crate::service::Service; - use crate::storage_stage::{StorageState, STORAGE_ROTATE_TEST_COUNT}; + use crate::storage_stage::STORAGE_ROTATE_TEST_COUNT; use crate::streamer; - use crate::tvu::{Sockets, Tvu}; - use crate::voting_keypair::VotingKeypair; use bincode::serialize; - use solana_sdk::hash::Hash; - use solana_sdk::signature::{Keypair, KeypairUtil}; use solana_sdk::system_transaction::SystemTransaction; use std::fs::remove_dir_all; - use std::net::UdpSocket; - use std::sync::atomic::{AtomicBool, Ordering}; - use std::sync::mpsc::channel; - use std::sync::{Arc, RwLock}; use std::time::Duration; fn new_gossip(