pub fn with_inventory_collector(
        mut self,
        inv_collector: broadcast::Sender<(InventoryHash, SocketAddr)>,
    ) -> Self {
        self.inv_collector = Some(inv_collector);
        self
    }
/// Provide a channel for registering inventory advertisements. Optional.
Provide a channel for registering inventory advertisements. Optional.
Provide a channel for registering inventory advertisements . Optional .
pub fn with_inventory_collector(
        mut self,
        inv_collector: broadcast::Sender<(InventoryHash, SocketAddr)>,
    ) -> Self {
        self.inv_collector = Some(inv_collector);
        self
    }
pub fn with_inventory_collector ( mut self , inv_collector : broadcast :: Sender < ( InventoryHash , SocketAddr ) > , ) -> Self { self . inv_collector = Some ( inv_collector ) ; self }
Provide a channel for registering inventory advertisements.
Provide a channel for registering inventory advertisements .
mut self
inv_collector
broadcast::Sender<(InventoryHash, SocketAddr)>