From 41154413d411048207cce3c22d68442d795e6a6f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 29 Dec 2021 20:13:22 +0100 Subject: Remove the GossipHandler, handle in code directly Use the iced idea of how to act on events rather than having a type for handling gossip messages. Signed-off-by: Matthias Beyer --- cli/src/profile.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/src/profile.rs') diff --git a/cli/src/profile.rs b/cli/src/profile.rs index cf1a2f0..d751116 100644 --- a/cli/src/profile.rs +++ b/cli/src/profile.rs @@ -90,8 +90,8 @@ async fn profile_serve(matches: &ArgMatches) -> Result<()> { .pubsub_subscribe("distrox".to_string()) .await .map(|stream| { - use distrox_lib::gossip::deserializer::GossipDeserializer; - use distrox_lib::gossip::deserializer::LogStrategy; + use distrox_lib::gossip::GossipDeserializer; + use distrox_lib::gossip::LogStrategy; GossipDeserializer::::new().run(stream) })? -- cgit v1.2.3