/// This adds a new `FindPeers` query to the queue if one doesn't already exist.
This adds a new `FindPeers` query to the queue if one doesn't already exist.
This adds a new ` FindPeers ` query to the queue if one doesn ' t already exist .
pub fn discover_peers(&mut self) {
        // If the discv5 service isn't running or we are in the process of a query, don't bother queuing a new one.
        if !self.started || self.find_peer_active {
            return;
        }
        // If there is not already a find peer's query queued, add one
        let query = QueryType::FindPeers;
        if !self.queued_queries.contains(&query) {
            trace!(self.log, "Queuing a peer discovery request");
            self.queued_queries.push_back(query);
        }
    }
pub fn discover_peers ( & mut self ) { // If the discv5 service isn't running or we are in the process of a query, don't bother queuing a new one. if ! self . started || self . find_peer_active { return ; } // If there is not already a find peer's query queued, add one let query = QueryType :: FindPeers ; if ! self . queued_queries . contains ( & query ) { trace ! ( self log " " ) ; self . queued_queries . push_back ( query ) ; } }
This adds a new `FindPeers` query to the queue if one doesn't already exist.
This adds a new ` FindPeers ` query to the queue if one doesn ' t already exist .
&mut self