cuprate_dandelion_tower::pool

Function start_dandelion_pool_manager

Source
pub fn start_dandelion_pool_manager<P, R, Tx, TxId, PeerId>(
    buffer_size: usize,
    dandelion_router: R,
    backing_pool: P,
    config: DandelionConfig,
) -> DandelionPoolService<Tx, TxId, PeerId>
where Tx: Clone + Send + 'static, TxId: Hash + Eq + Clone + Send + 'static, PeerId: Hash + Eq + Clone + Send + 'static, P: Service<TxStoreRequest<TxId>, Response = TxStoreResponse<Tx>, Error = BoxError> + Send + 'static, P::Future: Send + 'static, R: Service<DandelionRouteReq<Tx, PeerId>, Response = State, Error = DandelionRouterError> + Send + 'static, R::Future: Send + 'static,
Expand description

Start the DandelionPoolManager.

This function spawns the DandelionPoolManager and returns DandelionPoolService which can be used to send requests to the pool.

§Args