pub fn spawn(
        config: &Config,
        peer_set: PeerSet,
        mempool: Mempool,
        sync_status: SyncStatus,
        chain_tip_change: ChainTipChange,
    ) -> JoinHandle<Result<(), BoxError>> {
        let crawler = Crawler {
            peer_set: Timeout::new(peer_set, PEER_RESPONSE_TIMEOUT),
            mempool,
            sync_status,
            chain_tip_change,
            debug_enable_at_height: config.debug_enable_at_height.map(Height),
        };

        tokio::spawn(crawler.run())
    }
/// Spawn an asynchronous task to run the mempool crawler.
Spawn an asynchronous task to run the mempool crawler.
Spawn an asynchronous task to run the mempool crawler .
pub fn spawn(
        config: &Config,
        peer_set: PeerSet,
        mempool: Mempool,
        sync_status: SyncStatus,
        chain_tip_change: ChainTipChange,
    ) -> JoinHandle<Result<(), BoxError>> {
        let crawler = Crawler {
            peer_set: Timeout::new(peer_set, PEER_RESPONSE_TIMEOUT),
            mempool,
            sync_status,
            chain_tip_change,
            debug_enable_at_height: config.debug_enable_at_height.map(Height),
        };
        tokio::spawn(crawler.run())
    }
pub fn spawn ( config : & Config , peer_set : PeerSet , mempool : Mempool , sync_status : SyncStatus , chain_tip_change : ChainTipChange , ) -> JoinHandle < Result < ( ) , BoxError > > { let crawler = Crawler { peer_set : Timeout :: new ( peer_set , PEER_RESPONSE_TIMEOUT ) , mempool , sync_status , chain_tip_change , debug_enable_at_height : config . debug_enable_at_height . map ( Height ) , } ; tokio :: spawn ( crawler . run ( ) ) }
Spawn an asynchronous task to run the mempool crawler.
Spawn an asynchronous task to run the mempool crawler .
config
&Config
peer_set
PeerSet
mempool
Mempool
sync_status
SyncStatus
chain_tip_change
ChainTipChange