Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
deal with some FIXMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Jun 2, 2022
1 parent d244339 commit fca0a21
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
15 changes: 11 additions & 4 deletions node/network/bridge/src/incoming/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,13 @@ where
N: Network,
AD: validator_discovery::AuthorityDiscovery + Clone,
{
let NetworkBridgeIn { network_service, authority_discovery_service, metrics, sync_oracle, shared } =
bridge;
let NetworkBridgeIn {
network_service,
authority_discovery_service,
metrics,
sync_oracle,
shared,
} = bridge;

let (task, network_event_handler) = handle_network_messages(
ctx.sender().clone(),
Expand All @@ -640,8 +645,10 @@ where

futures::pin_mut!(orchestra_signal_handler);

// FIXME
let _either = futures::future::select(orchestra_signal_handler, network_event_handler).await;
futures::future::select(orchestra_signal_handler, network_event_handler)
.await
.factor_first()
.0?;
Ok(())
}

Expand Down
9 changes: 7 additions & 2 deletions node/network/bridge/src/outgoing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,13 @@ where
N: Network,
AD: validator_discovery::AuthorityDiscovery + Clone + Sync,
{
let NetworkBridgeOut { network_service, authority_discovery_service, metrics, sync_oracle, shared, } =
bridge;
let NetworkBridgeOut {
network_service,
authority_discovery_service,
metrics,
sync_oracle,
shared,
} = bridge;

handle_subsystem_messages(
ctx,
Expand Down
2 changes: 1 addition & 1 deletion node/overseer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ pub struct Overseer<SupportsParachains> {

#[subsystem(GossipSupportMessage, sends: [
NetworkBridgeMessage,
NetworkBridgeInMessage, // FIXME move this into the GossipSupport subsystem
NetworkBridgeInMessage, // TODO <https://github.com/paritytech/polkadot/issues/5626>
RuntimeApiMessage,
ChainSelectionMessage,
])]
Expand Down

0 comments on commit fca0a21

Please sign in to comment.