zebra_network::peer::handshake

Function handle_heartbeat_error

source
async fn handle_heartbeat_error<T, E>(
    result: Result<T, E>,
    address_book_updater: &Sender<MetaAddrChange>,
    connected_addr: &ConnectedAddr,
) -> Result<T, E>
where E: Debug,
Expand description

If result.is_err(), mark connected_addr as failed using address_book_updater.