pub fn is_active_for_gossip(&self, now: chrono::DateTime<Utc>) -> bool {
        if let Some(last_seen) = self.last_seen() {
            // Correctness: `last_seen` shouldn't ever be in the future, either because we set the
            // time or because another peer's future time was sanitized when it was added to the
            // address book
            last_seen.saturating_elapsed(now) <= constants::MAX_PEER_ACTIVE_FOR_GOSSIP
        } else {
            // Peer has never responded and does not have a gossiped last seen time
            false
        }
    }
/// Has this peer been seen recently?
///
/// Returns `true` if this peer has responded recently or if the peer was gossiped with a
/// recent reported last seen time.
///
/// [`constants::MAX_PEER_ACTIVE_FOR_GOSSIP`] represents the maximum time since a peer was seen
/// to still be considered reachable.
Has this peer been seen recently.
Returns `true` if this peer has responded recently or if the peer was gossiped with a
recent reported last seen time.

[`constants::MAX_PEER_ACTIVE_FOR_GOSSIP`] represents the maximum time since a peer was seen
to still be considered reachable.
Has this peer been seen recently . Returns ` true ` if this peer has responded recently or if the peer was gossiped with a recent reported last seen time . [ ` constants :: MAX_PEER_ACTIVE_FOR_GOSSIP ` ] represents the maximum time since a peer was seen to still be considered reachable .
pub fn is_active_for_gossip(&self, now: chrono::DateTime<Utc>) -> bool {
        if let Some(last_seen) = self.last_seen() {
            // Correctness: `last_seen` shouldn't ever be in the future, either because we set the
            // time or because another peer's future time was sanitized when it was added to the
            // address book
            last_seen.saturating_elapsed(now) <= constants::MAX_PEER_ACTIVE_FOR_GOSSIP
        } else {
            // Peer has never responded and does not have a gossiped last seen time
            false
        }
    }
pub fn is_active_for_gossip ( & self , now : chrono :: DateTime < Utc > ) -> bool { if let Some ( last_seen ) = self . last_seen ( ) { // Correctness: `last_seen` shouldn't ever be in the future, either because we set the // time or because another peer's future time was sanitized when it was added to the // address book last_seen . saturating_elapsed ( now ) <= constants :: MAX_PEER_ACTIVE_FOR_GOSSIP } else { // Peer has never responded and does not have a gossiped last seen time false } }
Has this peer been seen recently?
Has this peer been seen recently?
&self
now
chrono::DateTime<Utc>