From ab15b08cbeefe555c798871fee90cd0103b1b7d2 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 20 Dec 2023 04:51:24 -0600 Subject: [PATCH] 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. --- crates/puffin-client/src/registry_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/puffin-client/src/registry_client.rs b/crates/puffin-client/src/registry_client.rs index db1b83046..7469b72ad 100644 --- a/crates/puffin-client/src/registry_client.rs +++ b/crates/puffin-client/src/registry_client.rs @@ -42,7 +42,7 @@ impl RegistryClientBuilder { index_urls: IndexUrls::default(), proxy: Url::parse("https://pypi-metadata.ruff.rs").unwrap(), cache, - retries: 0, + retries: 3, } } }