Skip to content

Commit

Permalink
Minor doc and code cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Nov 23, 2021
1 parent dc00f93 commit 7849ca6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zebra-network/src/peer_set/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ where
/// This is handled by [`PeerSet::take_ready_service`] and [`PeerSet::route_all`].
preselected_p2c_peer: Option<D::Key>,

/// Stores gossiped inventory from connected peers.
/// Stores gossiped inventory hashes from connected peers.
///
/// Used to route inventory requests to peers that are likely to have it.
inventory_registry: InventoryRegistry,

Expand Down Expand Up @@ -296,9 +297,7 @@ where
"the peer set requires at least one background task"
);

for handle in handles {
self.guards.push(handle);
}
self.guards.extend(handles);

None
}
Expand Down

0 comments on commit 7849ca6

Please sign in to comment.