mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
doc: minor tweak to channel.rs doc
This commit is contained in:
@@ -87,8 +87,8 @@ pub struct Channel {
|
||||
|
||||
impl Channel {
|
||||
/// Sets up a new channel. Creates a reader and writer [`PtStream`] and
|
||||
/// summons the message subscriber subsystem. Performs a network handshake
|
||||
/// on the subsystem dispatchers.
|
||||
/// the message subscriber subsystem. Performs a network handshake on the
|
||||
/// subsystem dispatchers.
|
||||
pub async fn new(stream: Box<dyn PtStream>, addr: Url, session: SessionWeakPtr) -> Arc<Self> {
|
||||
let (reader, writer) = io::split(stream);
|
||||
let reader = Mutex::new(reader);
|
||||
|
||||
Reference in New Issue
Block a user