fn liveness_cutoff_time() -> DateTime<Utc> {
        // chrono uses signed durations while stdlib uses unsigned durations
        use chrono::Duration as CD;
        Utc::now() - CD::from_std(constants::LIVE_PEER_DURATION).unwrap()
    }
/// Compute a cutoff time that can determine whether an entry
/// in an address book being updated with peer message timestamps
/// represents a likely-dead (or hung) peer, or a potentially-connected peer.
///
/// [`constants::LIVE_PEER_DURATION`] represents the time interval in which
/// we should receive at least one message from a peer, or close the
/// connection. Therefore, if the last-seen timestamp is older than
/// [`constants::LIVE_PEER_DURATION`] ago, we know we should have
/// disconnected from it. Otherwise, we could potentially be connected to it.
Compute a cutoff time that can determine whether an entry
in an address book being updated with peer message timestamps
represents a likely-dead (or hung) peer, or a potentially-connected peer.

[`constants::LIVE_PEER_DURATION`] represents the time interval in which
we should receive at least one message from a peer, or close the
connection. Therefore, if the last-seen timestamp is older than
[`constants::LIVE_PEER_DURATION`] ago, we know we should have
disconnected from it. Otherwise, we could potentially be connected to it.
Compute a cutoff time that can determine whether an entry in an address book being updated with peer message timestamps represents a likely - dead ( or hung ) peer or a potentially - connected peer . [ ` constants :: LIVE_PEER_DURATION ` ] represents the time interval in which we should receive at least one message from a peer or close the connection . Therefore if the last - seen timestamp is older than [ ` constants :: LIVE_PEER_DURATION ` ] ago we know we should have disconnected from it . Otherwise we could potentially be connected to it .
fn liveness_cutoff_time() -> DateTime<Utc> {
        // chrono uses signed durations while stdlib uses unsigned durations
        use chrono::Duration as CD;
        Utc::now() - CD::from_std(constants::LIVE_PEER_DURATION).unwrap()
    }
fn liveness_cutoff_time ( ) -> DateTime < Utc > { // chrono uses signed durations while stdlib uses unsigned durations use chrono :: Duration as CD ; Utc :: now ( ) - CD :: from_std ( constants :: LIVE_PEER_DURATION ) . unwrap ( ) }
Compute a cutoff time that can determine whether an entry
in an address book being updated with peer message timestamps
represents a likely-dead (or hung) peer, or a potentially-connected peer.
Compute a cutoff time that can determine whether an entry in an address book being updated with peer message timestamps represents a likely - dead ( or hung ) peer or a potentially - connected peer .