Perform 3 retries by default instead of 0 on failed index requests (#710)

As a user, I'd expect retries to occur by default.

We should also expose this via a setting probably.
This commit is contained in:
Zanie Blue
2023-12-20 04:51:24 -06:00
committed by GitHub
parent 9f8b7e7e12
commit ab15b08cbe
+1 -1
View File
@@ -42,7 +42,7 @@ impl RegistryClientBuilder {
index_urls: IndexUrls::default(),
proxy: Url::parse("https://pypi-metadata.ruff.rs").unwrap(),
cache,
retries: 0,
retries: 3,
}
}
}