NodeServices: de-pub, remove dead code
This commit is contained in:
parent
c87e035302
commit
f0843fc5f1
|
@ -29,11 +29,11 @@ use std::thread::{spawn, Result};
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
|
|
||||||
pub type TvuRotationSender = Sender<TvuReturnType>;
|
pub type TvuRotationSender = Sender<TvuReturnType>;
|
||||||
pub type TvuRotationReceiver = Receiver<TvuReturnType>;
|
|
||||||
pub type TpuRotationSender = Sender<TpuReturnType>;
|
pub type TpuRotationSender = Sender<TpuReturnType>;
|
||||||
pub type TpuRotationReceiver = Receiver<TpuReturnType>;
|
type TvuRotationReceiver = Receiver<TvuReturnType>;
|
||||||
|
type TpuRotationReceiver = Receiver<TpuReturnType>;
|
||||||
|
|
||||||
pub struct NodeServices {
|
struct NodeServices {
|
||||||
tpu: Tpu,
|
tpu: Tpu,
|
||||||
tvu: Tvu,
|
tvu: Tvu,
|
||||||
}
|
}
|
||||||
|
@ -43,18 +43,14 @@ impl NodeServices {
|
||||||
NodeServices { tpu, tvu }
|
NodeServices { tpu, tvu }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn join(self) -> Result<()> {
|
fn join(self) -> Result<()> {
|
||||||
self.tpu.join()?;
|
self.tpu.join()?;
|
||||||
//tvu will never stop unless exit is signaled
|
//tvu will never stop unless exit is signaled
|
||||||
self.tvu.join()?;
|
self.tvu.join()?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_exited(&self) -> bool {
|
fn exit(&self) {
|
||||||
self.tpu.is_exited() && self.tvu.is_exited()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn exit(&self) {
|
|
||||||
self.tpu.exit();
|
self.tpu.exit();
|
||||||
self.tvu.exit();
|
self.tvu.exit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue