Skip to content
Snippets Groups Projects

gitlab-ci: Cope with OBS slowdown

Merged Emanuele Aina requested to merge wip/em/cope-with-slower-obs into master
@@ -60,7 +60,7 @@ impl Client {
#[instrument(skip(self))]
pub async fn get<U: IntoUrl + Clone + Debug>(&self, url: U) -> Result<Bytes> {
let result = retry(ExponentialBackoff::default(), || async {
self.get_no_retry(url.clone()).await.map_err(|err| {
self.get_no_retry(url.clone()).await.error_for_status().map_err(|err| {
// Don't treat 404s as transient (because they're usually not + it can be
// handled in a higher layer to find the first file available).
if is_error_404(&err) {
Loading