summaryrefslogtreecommitdiffstats
path: root/lib/src/reactor/gossip.rs
blob: e695dac9ecabc938ddffae64a919c42809bdc8a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! Low-level module for gossip'ing code
//!
//! This module implements the low-level gossiping functionality that other modules use to
//! implement actual behaviours on
//!

use std::sync::Arc;

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

use crate::profile::Profile;

#[derive(Debug)]
pub struct GossipReactor {
    profile: Arc<RwLock<Profile>>,
}

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