pub fn update(&mut self, new_nodes: BTreeMap<Id, Node>) {
        self.our_node.subscribers.extend(new_nodes.keys());
        self.known_nodes.extend(new_nodes);

        for module in self.modules.values_mut() {
            module.update(&self.our_node, &self.known_nodes);
        }
    }
/// update the known nodes and list of subscribers via the given collection
/// of new node.
///
/// This function can be called initially to bootstrap the topology with static
/// values. But it is intended to be called at every gossips received from
/// other nodes.
update the known nodes and list of subscribers via the given collection
of new node.

This function can be called initially to bootstrap the topology with static
values. But it is intended to be called at every gossips received from
other nodes.
update the known nodes and list of subscribers via the given collection of new node . This function can be called initially to bootstrap the topology with static values . But it is intended to be called at every gossips received from other nodes .
pub fn update(&mut self, new_nodes: BTreeMap<Id, Node>) {
        self.our_node.subscribers.extend(new_nodes.keys());
        self.known_nodes.extend(new_nodes);
        for module in self.modules.values_mut() {
            module.update(&self.our_node, &self.known_nodes);
        }
    }
pub fn update ( & mut self , new_nodes : BTreeMap < Id , Node > ) { self . our_node . subscribers . extend ( new_nodes . keys ( ) ) ; self . known_nodes . extend ( new_nodes ) ; for module in self . modules . values_mut ( ) { module . update ( & self . our_node , & self . known_nodes ) ; } }
update the known nodes and list of subscribers via the given collection
of new node.
update the known nodes and list of subscribers via the given collection of new node .
&mut self
new_nodes
BTreeMap<Id, Node>