diff --git a/node/overseer/Cargo.toml b/node/overseer/Cargo.toml index 76f96e0a4182..6f436c0d33fb 100644 --- a/node/overseer/Cargo.toml +++ b/node/overseer/Cargo.toml @@ -21,10 +21,8 @@ tracing = "0.1.26" lru = "0.6" [dev-dependencies] -sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } -polkadot-node-network-protocol = { path = "../network/protocol" } -polkadot-node-metrics = { path = "../metrics" } metered-channel = { path = "../metered-channel" } +sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } futures = { version = "0.3.15", features = ["thread-pool"] } femme = "2.1.1" kv-log-macro = "1.0.7" diff --git a/node/overseer/overseer-gen/proc-macro/src/impl_misc.rs b/node/overseer/overseer-gen/proc-macro/src/impl_misc.rs index b3406b62f7eb..e296e337236b 100644 --- a/node/overseer/overseer-gen/proc-macro/src/impl_misc.rs +++ b/node/overseer/overseer-gen/proc-macro/src/impl_misc.rs @@ -118,7 +118,7 @@ pub(crate) fn impl_misc(info: &OverseerInfo) -> proc_macro2::TokenStream { signals: #support_crate ::metered::MeteredReceiver< #signal >, messages: SubsystemIncomingMessages, to_subsystems: ChannelsOut, - to_overseer: #support_crate ::metered::UnboundedMeteredSender, + to_overseer: #support_crate ::metered::UnboundedMeteredSender<#support_crate:: ToOverseer>, ) -> Self { let signals_received = SignalsReceived::default(); #subsystem_ctx_name { @@ -136,7 +136,7 @@ pub(crate) fn impl_misc(info: &OverseerInfo) -> proc_macro2::TokenStream { } #[#support_crate ::async_trait] - impl SubsystemContext for #subsystem_ctx_name + impl #support_crate ::SubsystemContext for #subsystem_ctx_name where #subsystem_sender_name: #support_crate ::SubsystemSender< #wrapper_message >, #wrapper_message: From, diff --git a/node/overseer/overseer-gen/proc-macro/src/impl_overseer.rs b/node/overseer/overseer-gen/proc-macro/src/impl_overseer.rs index 3c578fdf4a51..1769de00ff8d 100644 --- a/node/overseer/overseer-gen/proc-macro/src/impl_overseer.rs +++ b/node/overseer/overseer-gen/proc-macro/src/impl_overseer.rs @@ -90,7 +90,7 @@ pub(crate) fn impl_overseer_struct(info: &OverseerInfo) -> proc_macro2::TokenStr /// Gather running subsystems' outbound streams into one. to_overseer_rx: #support_crate ::stream::Fuse< - #support_crate ::metered::UnboundedMeteredReceiver< ToOverseer > + #support_crate ::metered::UnboundedMeteredReceiver< #support_crate ::ToOverseer > >, /// Events that are sent to the overseer from the outside world.