mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-02-03 11:46:42 +00:00
make block_downloader
private
This commit is contained in:
parent
54a249e858
commit
96d4ae5c3f
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue