fix infinite loop on request error that isn't an IO Error
@@ -22,7 +22,7 @@ fn to_backoff_response(
) -> Result<Response, backoff::Error<anyhow::Error>> {
fn is_transient_socket_error(error: &reqwest::Error) -> bool {
let source = error.source();
- while let Some(err) = source {
+ if let Some(err) = source {
if let Some(io_error) = err.downcast_ref::<std::io::Error>() {
match io_error.kind() {
ErrorKind::ConnectionAborted
