From f0843fc5f131328e7c60694b275da2a83895053d Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 6 Feb 2019 20:45:26 -0800 Subject: [PATCH] NodeServices: de-pub, remove dead code --- src/fullnode.rs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/fullnode.rs b/src/fullnode.rs index 21551c9d5f..e10c16f0a4 100644 --- a/src/fullnode.rs +++ b/src/fullnode.rs @@ -29,11 +29,11 @@ use std::thread::{spawn, Result}; use std::time::{Duration, Instant}; pub type TvuRotationSender = Sender; -pub type TvuRotationReceiver = Receiver; pub type TpuRotationSender = Sender; -pub type TpuRotationReceiver = Receiver; +type TvuRotationReceiver = Receiver; +type TpuRotationReceiver = Receiver; -pub struct NodeServices { +struct NodeServices { tpu: Tpu, tvu: Tvu, } @@ -43,18 +43,14 @@ impl NodeServices { NodeServices { tpu, tvu } } - pub fn join(self) -> Result<()> { + fn join(self) -> Result<()> { self.tpu.join()?; //tvu will never stop unless exit is signaled self.tvu.join()?; Ok(()) } - pub fn is_exited(&self) -> bool { - self.tpu.is_exited() && self.tvu.is_exited() - } - - pub fn exit(&self) { + fn exit(&self) { self.tpu.exit(); self.tvu.exit(); }