diff --git a/client/network/src/discovery.rs b/client/network/src/discovery.rs index 80a4a489c9d67..2bc8738cddc1d 100644 --- a/client/network/src/discovery.rs +++ b/client/network/src/discovery.rs @@ -947,6 +947,7 @@ mod tests { to_discover[swarm_n].remove(&other); }, DiscoveryOut::RandomKademliaStarted(_) => {}, + DiscoveryOut::BootstrapComplete(_) => {}, e => {panic!("Unexpected event: {:?}", e)}, } continue 'polling diff --git a/client/network/src/gossip.rs b/client/network/src/gossip.rs index eefd97954ca9f..ffba2108eaa0a 100644 --- a/client/network/src/gossip.rs +++ b/client/network/src/gossip.rs @@ -82,7 +82,7 @@ impl QueuedSender { protocol: ConsensusEngineId, queue_size_limit: usize, messages_encode: F - ) -> (Self, impl Future + Send + 'static) + ) -> (Self, impl Future + 'static) where M: Send + 'static, B: BlockT + 'static, diff --git a/client/service/test/src/lib.rs b/client/service/test/src/lib.rs index bcc5474cbde73..ff806ce2a3444 100644 --- a/client/service/test/src/lib.rs +++ b/client/service/test/src/lib.rs @@ -403,7 +403,7 @@ pub fn connectivity( const NUM_LIGHT_NODES: usize = 5; let expected_full_connections = NUM_FULL_NODES - 1 + NUM_LIGHT_NODES; - let expected_light_connections = NUM_FULL_NODES; + let expected_light_connections = NUM_FULL_NODES - 1 + NUM_LIGHT_NODES; { let temp = tempdir_with_prefix("substrate-connectivity-test");