pub fn peers(&self, hash: &InventoryHash) -> impl Iterator<Item = &SocketAddr> {
        let prev = self.prev.get(hash).into_iter();
        let current = self.current.get(hash).into_iter();

        prev.chain(current).flatten()
    }
/// Returns an iterator over addrs of peers that have recently advertised
/// having `hash` in their inventory.
Returns an iterator over addrs of peers that have recently advertised
having `hash` in their inventory.
Returns an iterator over addrs of peers that have recently advertised having ` hash ` in their inventory .
pub fn peers(&self, hash: &InventoryHash) -> impl Iterator<Item = &SocketAddr> {
        let prev = self.prev.get(hash).into_iter();
        let current = self.current.get(hash).into_iter();
        prev.chain(current).flatten()
    }
pub fn peers ( & self , hash : & InventoryHash ) -> impl Iterator < Item = & SocketAddr > { let prev = self . prev . get ( hash ) . into_iter ( ) ; let current = self . current . get ( hash ) . into_iter ( ) ; prev . chain ( current ) . flatten ( ) }
Returns an iterator over addrs of peers that have recently advertised
having `hash` in their inventory.
Returns an iterator over addrs of peers that have recently advertised having ` hash ` in their inventory .
&self
hash
&InventoryHash