1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use lifeline::{Lifeline, Service, Task};
use support_lifeline::service::BridgeService;
use crate::bridge::BridgeBus;
#[derive(Debug)]
pub struct FeemarketService {
_greet: Lifeline,
}
impl BridgeService for FeemarketService {}
impl Service for FeemarketService {
type Bus = BridgeBus;
type Lifeline = color_eyre::Result<Self>;
fn spawn(_bus: &Self::Bus) -> Self::Lifeline {
let _greet = Self::try_task("feemarket-service", async move { Ok(()) });
Ok(Self { _greet })
}
}