Network sync refactoring (part 3) (#11347)

* Move `light.v1.proto` schema into new crate `sc-network-light`

* Move `sc_network::light_client_requests` and submodule to `sc_network_light::light_client_requests`

* Fix apparently outdated reference in documentation and visibility modifier

* Fix rustdoc check

* Update lock file
This commit is contained in:
Nazar Mokrynskyi
2022-05-14 10:17:53 +03:00
committed by GitHub
parent 685162cfd6
commit 8a45870878
16 changed files with 120 additions and 20 deletions
@@ -17,13 +17,13 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use crate::{
config, light_client_requests::handler::LightClientRequestHandler,
state_request_handler::StateRequestHandler, Event, NetworkService, NetworkWorker,
config, state_request_handler::StateRequestHandler, Event, NetworkService, NetworkWorker,
};
use futures::prelude::*;
use libp2p::PeerId;
use sc_network_common::config::ProtocolId;
use sc_network_light::light_client_requests::handler::LightClientRequestHandler;
use sc_network_sync::block_request_handler::BlockRequestHandler;
use sp_runtime::traits::{Block as BlockT, Header as _};
use std::{borrow::Cow, sync::Arc, time::Duration};