/// Handle that is used to communicate with `sc_network::Notifications`.
/// Handle that is used to communicate with `sc_network::Notifications`.
notification_service:Box<dynNotificationService>,
notification_service:Box<dynNotificationService>,
}
}
...
@@ -119,27 +116,32 @@ where
...
@@ -119,27 +116,32 @@ where
));
));
// Then start the network loop
// Then start the network loop
loop{
loop{
// First: handle any command. This cannot be placed in the `select!` macro because it would consume 100% of one CPU core (the command_rx is always ready).