-
Notifications
You must be signed in to change notification settings - Fork 80
Conversation
change IAm to Hello
(maidsafe_highfive has picked a reviewer for you, use r? to override) |
use std::io; | ||
use std::net::SocketAddr; | ||
use std::str::FromStr; | ||
use std::sync::{Arc, Mutex}; | ||
use std::sync::{Arc, Mutex, mpsc}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we now do without an Arc / Mutex ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can.
} | ||
impl Client { | ||
fn new(_bootstrap_peers: Vec<Endpoint>) -> Result<Client, RoutingError> { | ||
let (routing_sender, routing_receiver) = mpsc::channel::<Event>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a style issue to consider: naming a channel WHAT_sender, and WHAT_receiver is more clear than WHO_sender/_receiver, as it feels to me less clear what the direction of the channel is
Signed-off-by: Benjamin Bollen <benjamin.bollen@maidsafe.net>
@@ -20,9 +20,9 @@ use public_id::PublicId; | |||
use types::Address; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should rename the module / file here I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll rename it in #570
To the new Routing API