Skip to content
Snippets Groups Projects
Commit 33476f08 authored by Marcio Diaz's avatar Marcio Diaz Committed by Shawn Tabrizi
Browse files

Fix functions doc. (#4260)

parent 77324be7
Branches
Tags
No related merge requests found
......@@ -249,8 +249,8 @@ impl PeersState {
/// Tries to accept the peer as an incoming connection.
///
/// If there are enough slots available, switches the node to "connected" and returns `Ok`. If
/// the slots are full, the node stays "not connected" and we return `Err`.
/// If there are enough slots available, switches the node to "connected" and returns `true`. If
/// the slots are full, the node stays "not connected" and we return `false`.
///
/// Note that reserved nodes don't count towards the number of slots.
fn try_accept_incoming(&mut self, peer_id: &PeerId) -> bool {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment