async fn heartbeat_timeout(
fut: impl Future<Output = Result<Response, BoxError>>,
address_book_updater: &Sender<MetaAddrChange>,
connected_addr: &ConnectedAddr,
) -> Result<Option<Duration>, BoxError>Expand description
Wrap fut in a timeout, handing any inner or outer errors using
handle_heartbeat_error.