Function fetch_with_retry

Source
pub async fn fetch_with_retry(
    client: &Client,
    url: &str,
) -> Result<String, Box<dyn Error + Send + Sync>>
Expand description

HTTP GETによるデータ取得を、リトライ+指数バックオフ付きで行う。 成功時はレスポンス文字列を返す。 retry_attempts回失敗した場合、エラーを返す。