summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-12-18 17:44:20 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-12-18 17:44:21 +0100
commit000b41ecfab76a1133245659e284e53dd815bf79 (patch)
tree9889dd8f2397a4d7503e33c09dc27daa60a33cc1
parent0dab7cf79e7579ccdc8ba1b99f24476004a13de7 (diff)
Fix: Remove config::Config usage
as this type was removed. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--lib/src/reactor/gossip/mod.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/src/reactor/gossip/mod.rs b/lib/src/reactor/gossip/mod.rs
index c8a7d28..7658509 100644
--- a/lib/src/reactor/gossip/mod.rs
+++ b/lib/src/reactor/gossip/mod.rs
@@ -211,13 +211,11 @@ mod tests {
use std::sync::Arc;
use tokio::sync::RwLock;
- use crate::config::Config;
-
#[tokio::test]
async fn test_gossip_reactor_simple() {
let _ = env_logger::try_init();
- let profile = Profile::new_inmemory(Config::default(), "test-gossip-reactor-simple").await;
+ let profile = Profile::new_inmemory("test-gossip-reactor-simple").await;
assert!(profile.is_ok());
let profile = Arc::new(RwLock::new(profile.unwrap()));
@@ -257,7 +255,7 @@ mod tests {
let gossip_topic_name = String::from("test-gossip-reactor-gossipping-topic");
let (left_profile, left_reactor, left_rx) = {
- let profile = Profile::new_inmemory(Config::default(), "test-gossip-reactor-simple-left").await;
+ let profile = Profile::new_inmemory("test-gossip-reactor-simple-left").await;
assert!(profile.is_ok());
let profile = Arc::new(RwLock::new(profile.unwrap()));
@@ -268,7 +266,7 @@ mod tests {
log::trace!("Built left GossipReactor");
let (right_profile, right_reactor, right_rx) = {
- let profile = Profile::new_inmemory(Config::default(), "test-gossip-reactor-simple-right").await;
+ let profile = Profile::new_inmemory("test-gossip-reactor-simple-right").await;
assert!(profile.is_ok());
let profile = Arc::new(RwLock::new(profile.unwrap()));