summaryrefslogtreecommitdiffstats
path: root/lib/src/reactor/device.rs
blob: c013db64f7d67a5dced1d0220abe41885da42da8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! Module for multi-device support functionality,
//! which uses the gossip module for the lower-level handling

use std::sync::Arc;

use anyhow::Result;
use tokio::sync::RwLock;

use crate::profile::Profile;
use crate::reactor::gossip::GossipReactor;

#[derive(Debug)]
pub struct DeviceReactor(GossipReactor);

impl DeviceReactor {
    pub(super) fn new(profile: Arc<RwLock<Profile>>) -> Self {
        Self(GossipReactor::new(profile))
    }
}