Function zebra_network::peer::handshake::heartbeat_timeout

source ยท
async fn heartbeat_timeout<F, T>(
    fut: F,
    address_book_updater: &Sender<MetaAddrChange>,
    connected_addr: &ConnectedAddr,
) -> Result<T, BoxError>
where F: Future<Output = Result<T, BoxError>>,
Expand description

Wrap fut in a timeout, handing any inner or outer errors using handle_heartbeat_error.