1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use support_lifeline::task::TaskStack;
use crate::bridge::PangoroChapelBus;
use crate::service::header_relay::HeaderRelayService;
#[allow(dead_code)]
#[derive(Debug)]
pub struct PangoroChapelServiceManager {
stack: TaskStack<PangoroChapelBus>,
}
impl PangoroChapelServiceManager {
pub async fn new() -> color_eyre::Result<Self> {
let bus = PangoroChapelBus::default();
let mut stack = TaskStack::new(bus);
stack.spawn_service::<HeaderRelayService>()?;
Ok(Self { stack })
}
}