Remove unused proxy field from client (#820)

This commit is contained in:
Charlie Marsh 2024-01-06 17:02:35 -05:00 committed by GitHub
parent 5f98210083
commit 9ded337870
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,6 @@ use crate::{CachedClient, CachedClientError, Error};
#[derive(Debug, Clone)]
pub struct RegistryClientBuilder {
index_urls: IndexUrls,
proxy: Url,
retries: u32,
cache: Cache,
}
@ -41,7 +40,6 @@ impl RegistryClientBuilder {
pub fn new(cache: Cache) -> Self {
Self {
index_urls: IndexUrls::default(),
proxy: Url::parse("https://pypi-metadata.ruff.rs").unwrap(),
cache,
retries: 3,
}
@ -55,12 +53,6 @@ impl RegistryClientBuilder {
self
}
#[must_use]
pub fn proxy(mut self, proxy: Url) -> Self {
self.proxy = proxy;
self
}
#[must_use]
pub fn retries(mut self, retries: u32) -> Self {
self.retries = retries;