Skip to content

Commit

Permalink
doc: update PeerLoopHandler doc-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-da committed Sep 3, 2024
1 parent 8a87902 commit a59bae6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/peer_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ const _DISCONNECT_CONNECTION: bool = true;

pub type PeerStandingNumber = i32;

/// Contains the immutable data that this peer-loop needs. Does not contain the `peer` variable
/// since this needs to be a mutable variable in most methods.
/// Handles messages from peers via TCP
///
/// also handles messages from main task over the main-to-peer-tasks broadcast
/// channel.
pub struct PeerLoopHandler {
to_main_tx: mpsc::Sender<PeerTaskToMain>,
global_state_lock: GlobalStateLock,
Expand Down

0 comments on commit a59bae6

Please sign in to comment.