fetch_with_retry

Function fetch_with_retry 

Source
pub async fn fetch_with_retry(
    client: &Client,
    url: &str,
    retry_attempts: u32,
    max_backoff_secs: u64,
) -> Result<String, AppError>
Expand description

HTTP GETによるデータ取得をリトライ+指数バックオフ付きで行う 失敗時はAppError::Other(…)を返す