diff --git a/substrate/client/network/sync/src/lib.rs b/substrate/client/network/sync/src/lib.rs index 9f6c0f45d089..68bb5dabcac6 100644 --- a/substrate/client/network/sync/src/lib.rs +++ b/substrate/client/network/sync/src/lib.rs @@ -25,9 +25,9 @@ pub use types::{SyncEvent, SyncEventStream, SyncState, SyncStatus, SyncStatusPro mod block_announce_validator; mod futures_stream; mod justification_requests; -mod pending_responses; +pub mod pending_responses; mod request_metrics; -mod schema; +pub mod schema; pub mod types; pub mod block_relay_protocol; diff --git a/substrate/client/network/sync/src/pending_responses.rs b/substrate/client/network/sync/src/pending_responses.rs index 7d2d598a2e06..ba9a38ff83c6 100644 --- a/substrate/client/network/sync/src/pending_responses.rs +++ b/substrate/client/network/sync/src/pending_responses.rs @@ -41,7 +41,7 @@ type ResponseResult = Result, ProtocolName), RequestFailure>, on type ResponseFuture = BoxFuture<'static, ResponseResult>; /// An event we receive once a pending response future resolves. -pub(crate) struct ResponseEvent { +pub struct ResponseEvent { pub peer_id: PeerId, pub key: StrategyKey, pub request: PeerRequest, @@ -49,7 +49,7 @@ pub(crate) struct ResponseEvent { } /// Stream taking care of polling pending responses. -pub(crate) struct PendingResponses { +pub struct PendingResponses { /// Pending responses pending_responses: StreamMap<(PeerId, StrategyKey), BoxStream<'static, (PeerRequest, ResponseResult)>>, diff --git a/substrate/client/network/sync/src/schema.rs b/substrate/client/network/sync/src/schema.rs index 22b7ee592778..f995e5c991a1 100644 --- a/substrate/client/network/sync/src/schema.rs +++ b/substrate/client/network/sync/src/schema.rs @@ -18,6 +18,6 @@ //! Include sources generated from protobuf definitions. -pub(crate) mod v1 { +pub mod v1 { include!(concat!(env!("OUT_DIR"), "/api.v1.rs")); } diff --git a/substrate/client/network/sync/src/strategy.rs b/substrate/client/network/sync/src/strategy.rs index 5f2ad4eca098..84e223f65a99 100644 --- a/substrate/client/network/sync/src/strategy.rs +++ b/substrate/client/network/sync/src/strategy.rs @@ -20,7 +20,7 @@ //! and specific syncing algorithms. pub mod chain_sync; -pub(crate) mod state; +pub mod state; pub mod state_sync; pub mod warp;