pub fn sanitize(&self) -> MetaAddr {
        let interval = crate::constants::TIMESTAMP_TRUNCATION_SECONDS;
        let ts = self.get_last_seen().timestamp();
        let last_seen = Utc.timestamp(ts - ts.rem_euclid(interval), 0);
        MetaAddr {
            addr: self.addr,
            // services are sanitized during parsing, so we don't need to make
            // any changes here
            services: self.services,
            last_seen,
            // the state isn't sent to the remote peer, but sanitize it anyway
            last_connection_state: Default::default(),
        }
    }
/// Return a sanitized version of this `MetaAddr`, for sending to a remote peer.
Return a sanitized version of this `MetaAddr`, for sending to a remote peer.
Return a sanitized version of this ` MetaAddr ` for sending to a remote peer .
pub fn sanitize(&self) -> MetaAddr {
        let interval = crate::constants::TIMESTAMP_TRUNCATION_SECONDS;
        let ts = self.get_last_seen().timestamp();
        let last_seen = Utc.timestamp(ts - ts.rem_euclid(interval), 0);
        MetaAddr {
            addr: self.addr,
            // services are sanitized during parsing, so we don't need to make
            // any changes here
            services: self.services,
            last_seen,
            // the state isn't sent to the remote peer, but sanitize it anyway
            last_connection_state: Default::default(),
        }
    }
pub fn sanitize ( & self ) -> MetaAddr { let interval = crate :: constants :: TIMESTAMP_TRUNCATION_SECONDS ; let ts = self . get_last_seen ( ) . timestamp ( ) ; let last_seen = Utc . timestamp ( ts - ts . rem_euclid ( interval ) , 0 ) ; MetaAddr { addr : self . addr , // services are sanitized during parsing, so we don't need to make // any changes here services : self . services , last_seen , // the state isn't sent to the remote peer, but sanitize it anyway last_connection_state : Default :: default ( ) , } }
Return a sanitized version of this `MetaAddr`, for sending to a remote peer.
Return a sanitized version of this ` MetaAddr ` for sending to a remote peer .
&self