From bcc6721257889f85f57af1b40351540585ffd41d Mon Sep 17 00:00:00 2001 From: hozan23 Date: Thu, 27 Jun 2024 03:52:18 +0200 Subject: Remove redundant type aliases --- p2p/examples/chat.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'p2p/examples/chat.rs') diff --git a/p2p/examples/chat.rs b/p2p/examples/chat.rs index d162371..4dd87c5 100644 --- a/p2p/examples/chat.rs +++ b/p2p/examples/chat.rs @@ -10,8 +10,8 @@ use smol::{channel, Executor}; use karyon_p2p::{ endpoint::{Endpoint, Port}, keypair::{KeyPair, KeyPairType}, - protocol::{ArcProtocol, Protocol, ProtocolEvent, ProtocolID}, - ArcPeer, Backend, Config, Error, Version, + protocol::{Protocol, ProtocolEvent, ProtocolID}, + Backend, Config, Error, Peer, Version, }; use shared::run_executor; @@ -42,12 +42,12 @@ struct Cli { pub struct ChatProtocol { username: String, - peer: ArcPeer, + peer: Arc, executor: Arc>, } impl ChatProtocol { - fn new(username: &str, peer: ArcPeer, executor: Arc>) -> ArcProtocol { + fn new(username: &str, peer: Arc, executor: Arc>) -> Arc { Arc::new(Self { peer, username: username.to_string(), -- cgit v1.2.3