mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-13 01:51:23 +00:00
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:
@ -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.
|
||||
|
Reference in New Issue
Block a user