Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix iterator bug
  • Loading branch information
skunert committed Apr 11, 2022
commit 14b8148d10f03d7e577d0fd4dfb9ceb9ffb27898
14 changes: 7 additions & 7 deletions test/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,20 +494,20 @@ impl TestNodeBuilder {
}

/// Specify bootnodes to connect to.
pub fn with_bootnodes<'a>(
pub fn with_bootnodes(
mut self,
addresses: impl IntoIterator<Item = &'a MultiaddrWithPeerId>,
addresses: impl IntoIterator<Item = MultiaddrWithPeerId>,
) -> Self {
self.bootnodes.extend(addresses.map(|a| a.clone()));
self.bootnodes.extend(addresses.into_iter().map(|a| a.clone()));
self
}

/// Make the node connect to the given relay chain node.
pub fn connect_to_parachain_nodes_address<'a>(
pub fn connect_to_parachain_nodes_address(
mut self,
addresses: impl IntoIterator<Item = &'a MultiaddrWithPeerId>,
addresses: impl IntoIterator<Item = MultiaddrWithPeerId>,
) -> Self {
self.parachain_nodes.extend(addresses.map(|a| a.clone()));
self.parachain_nodes.extend(addresses.into_iter().map(|a| a.clone()));
self
}

Expand Down Expand Up @@ -547,7 +547,7 @@ impl TestNodeBuilder {
/// node.
pub fn connect_to_relay_chain_node_addresses<'a>(
mut self,
addresses: impl IntoIterator<Item = &'a MultiaddrWithPeerId>,
addresses: impl IntoIterator<Item = MultiaddrWithPeerId>,
) -> Self {
self.relay_chain_nodes.extend(addresses.into_iter().map(|addr| addr.clone()));
self
Expand Down