From af8f1e9d201ddb77fca984e3cb3b56ea180c4f35 Mon Sep 17 00:00:00 2001 From: zero Date: Mon, 8 Apr 2024 07:52:37 +0200 Subject: [PATCH] net: remove public visibility from outbound_session::Slot, and correct broken docstring --- src/net/session/outbound_session.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net/session/outbound_session.rs b/src/net/session/outbound_session.rs index b013c8b22..8ce751ead 100644 --- a/src/net/session/outbound_session.rs +++ b/src/net/session/outbound_session.rs @@ -141,7 +141,7 @@ impl Session for OutboundSession { } } -pub struct Slot { +struct Slot { slot: u32, process: StoppableTaskPtr, wakeup_self: CondVar, @@ -184,11 +184,11 @@ impl Slot { /// anchor_count, select from the anchorlist. Up to white_count, /// select from the whitelist. For all other slots, select from /// the greylist. - + /// /// If we didn't find an address with this selection logic, downgrade /// our preferences. Up to anchor_count, select from the whitelist, /// up until white_count, select from the greylist. - + /// /// If we still didn't find an address, select from the greylist. In /// all other cases, return an empty vector. This will trigger /// fetch_addrs() to return None and initiate peer discovery.