Skip to content

Commit

Permalink
Tweak comments
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Nov 23, 2021
1 parent 7871b11 commit 7760bf1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zebra-network/src/peer_set/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ where

// The tasks have been sent, but not consumed.
Ok(handles) => {
// Currently, the peer set treats no backgound tasks as an error.
// Currently, the peer set treats an empty background task set as an error.
//
// TODO: refactor `handle_rx` and `guards` into an enum
// representing the background task state: Waiting/Running/Shutdown.
// for the background task state: Waiting/Running/Shutdown.
assert!(
!handles.is_empty(),
"the peer set requires at least one background task"
Expand All @@ -304,7 +304,7 @@ where
// Correctness: the peer set must receive at least one task.
//
// TODO: refactor `handle_rx` and `guards` into an enum
// representing the background task state: Waiting/Running/Shutdown.
// for the background task state: Waiting/Running/Shutdown.
Err(TryRecvError::Closed) => {
Some(Err("all peer set background tasks have exited".into()))
}
Expand Down Expand Up @@ -339,7 +339,7 @@ where
guard.abort();
}

// TODO: implement graceful shutdown for InventoryRegistry
// TODO: implement graceful shutdown for InventoryRegistry (#1678)
}

fn poll_unready(&mut self, cx: &mut Context<'_>) {
Expand Down

0 comments on commit 7760bf1

Please sign in to comment.