// Copyright (c) Zefchain Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Timeout wrapper for the validator RPCs the benchmark issues.
//!
//! Every blocking call goes through [`timed`] so a hung validator surfaces as a
//! recorded `timeout` error and the run keeps making progress instead of
//! freezing on a single unresponsive request.
use ;
use timeout;
use categorize;
/// Run an RPC future under `dur`. Returns the value on success, or an error
/// category string: `timeout` on elapse, otherwise the categorized RPC error.
pub async