mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Remove unused proxy
field from client (#820)
This commit is contained in:
parent
5f98210083
commit
9ded337870
1 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue