make block_downloader private

This commit is contained in:
Boog900 2024-06-18 01:03:58 +01:00
parent 54a249e858
commit 96d4ae5c3f
No known key found for this signature in database
GPG key ID: 42AB1287CB0041C2
2 changed files with 3 additions and 3 deletions

View file

@ -230,7 +230,7 @@ impl Ord for ReadyQueueBatch {
/// - request the next chain entry
/// - download an already requested batch of blocks (this might happen due to an error in the previous request
/// or because the queue of ready blocks is too large, so we need the oldest block to clear it).
pub struct BlockDownloader<N: NetworkZone, S, C> {
struct BlockDownloader<N: NetworkZone, S, C> {
/// The client pool.
client_pool: Arc<ClientPool<N>>,
@ -1039,7 +1039,7 @@ async fn request_chain_entry_from_peer<N: NetworkZone>(
///
/// We then wait for their response and choose the peer who claims the highest cumulative difficulty.
#[instrument(level = "error", skip_all)]
pub async fn initial_chain_search<N: NetworkZone, S, C>(
async fn initial_chain_search<N: NetworkZone, S, C>(
client_pool: &Arc<ClientPool<N>>,
mut peer_sync_svc: S,
mut our_chain_svc: C,

View file

@ -21,7 +21,7 @@ use monero_p2p::{
CoreSyncSvc, NetworkZone, PeerRequestHandler,
};
pub mod block_downloader;
mod block_downloader;
mod broadcast;
mod client_pool;
pub mod config;