Temporary canonical multihash in peer ID. (#1449)

* Temporary canonical multihash in peer ID.

* Reduce code duplication.

* Remove unnecessary impls.

Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
This commit is contained in:
Roman Borschel
2020-02-13 10:36:14 +01:00
committed by GitHub
parent 8238fd2100
commit b872bd9030
9 changed files with 77 additions and 63 deletions

View File

@ -101,7 +101,7 @@ impl Floodsub {
/// Remove a node from the list of nodes to propagate messages to.
#[inline]
pub fn remove_node_from_partial_view(&mut self, peer_id: &PeerId) {
self.target_peers.remove(&peer_id);
self.target_peers.remove(peer_id);
}
/// Subscribes to a topic.