mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Fix functions doc. (#4260)
This commit is contained in:
committed by
Shawn Tabrizi
parent
a401acc690
commit
6ba1d5d1fb
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user