pub fn new(config: Config, rng: fastrand::Rng, upstream: U) -> Self {
        let peers = HashMap::with_hasher(rng.clone().into());
        let last_tip_update = None;
        let last_peer_sample = None;
        let last_idle = None;
        let inflight = HashMap::with_hasher(rng.clone().into());

        Self {
            peers,
            config,
            last_tip_update,
            last_peer_sample,
            last_idle,
            rng,
            inflight,
            upstream,
        }
    }
/// Create a new sync manager.
Create a new sync manager.
Create a new sync manager .
pub fn new(config: Config, rng: fastrand::Rng, upstream: U) -> Self {
        let peers = HashMap::with_hasher(rng.clone().into());
        let last_tip_update = None;
        let last_peer_sample = None;
        let last_idle = None;
        let inflight = HashMap::with_hasher(rng.clone().into());
        Self {
            peers,
            config,
            last_tip_update,
            last_peer_sample,
            last_idle,
            rng,
            inflight,
            upstream,
        }
    }
pub fn new ( config : Config , rng : fastrand :: Rng , upstream : U ) -> Self { let peers = HashMap :: with_hasher ( rng . clone ( ) . into ( ) ) ; let last_tip_update = None ; let last_peer_sample = None ; let last_idle = None ; let inflight = HashMap :: with_hasher ( rng . clone ( ) . into ( ) ) ; Self { peers , config , last_tip_update , last_peer_sample , last_idle , rng , inflight , upstream , } }
Create a new sync manager.
Create a new sync manager .
config
Config
rng
fastrand::Rng
upstream
U