pub fn as_questionable(id: NodeId, addr: SocketAddr) -> Node {
        let last_response_offset = Duration::from_secs(MAX_LAST_SEEN_MINS * 60);
        let last_response = Instant::now().checked_sub(last_response_offset).unwrap();

        Node {
            handle: NodeHandle { id, addr },
            last_response: Some(last_response),
            last_request: None,
            last_local_request: None,
            refresh_requests: 0,
        }
    }
/// Create a questionable node that has responded to us before but never requested from us.
Create a questionable node that has responded to us before but never requested from us.
Create a questionable node that has responded to us before but never requested from us .
pub fn as_questionable(id: NodeId, addr: SocketAddr) -> Node {
        let last_response_offset = Duration::from_secs(MAX_LAST_SEEN_MINS * 60);
        let last_response = Instant::now().checked_sub(last_response_offset).unwrap();
        Node {
            handle: NodeHandle { id, addr },
            last_response: Some(last_response),
            last_request: None,
            last_local_request: None,
            refresh_requests: 0,
        }
    }
pub fn as_questionable ( id : NodeId , addr : SocketAddr ) -> Node { let last_response_offset = Duration :: from_secs ( MAX_LAST_SEEN_MINS * 60 ) ; let last_response = Instant :: now ( ) . checked_sub ( last_response_offset ) . unwrap ( ) ; Node { handle : NodeHandle { id , addr } , last_response : Some ( last_response ) , last_request : None , last_local_request : None , refresh_requests : 0 , } }
Create a questionable node that has responded to us before but never requested from us.
Create a questionable node that has responded to us before but never requested from us .
id
NodeId
addr
SocketAddr
id
NodeId
addr
SocketAddr