summaryrefslogtreecommitdiffstats
path: root/lib/src/reactor/gossip.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/reactor/gossip.rs')
-rw-r--r--lib/src/reactor/gossip.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/src/reactor/gossip.rs b/lib/src/reactor/gossip.rs
new file mode 100644
index 0000000..e695dac
--- /dev/null
+++ b/lib/src/reactor/gossip.rs
@@ -0,0 +1,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 }
+ }
+}
+