mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-28 06:31:03 +00:00
Remove pub(crate) from RegistryClient fields (#821)
This commit is contained in:
parent
9ded337870
commit
77c3a67029
1 changed files with 6 additions and 5 deletions
|
|
@ -93,20 +93,21 @@ impl RegistryClientBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A client for fetching packages from a `PyPI`-compatible index.
|
/// A client for fetching packages from a `PyPI`-compatible index.
|
||||||
// TODO(konstin): Clean up the clients once we moved everything to common caching.
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct RegistryClient {
|
pub struct RegistryClient {
|
||||||
/// The index URLs to use for fetching packages.
|
/// The index URLs to use for fetching packages.
|
||||||
pub(crate) index_urls: IndexUrls,
|
index_urls: IndexUrls,
|
||||||
pub(crate) client: CachedClient,
|
/// The underlying HTTP client.
|
||||||
|
client: CachedClient,
|
||||||
/// Don't use this client, it only exists because `async_http_range_reader` needs
|
/// Don't use this client, it only exists because `async_http_range_reader` needs
|
||||||
/// [`reqwest::Client] instead of [`reqwest_middleware::Client`]
|
/// [`reqwest::Client] instead of [`reqwest_middleware::Client`]
|
||||||
pub(crate) client_raw: Client,
|
client_raw: Client,
|
||||||
/// Used for the remote wheel METADATA cache
|
/// Used for the remote wheel METADATA cache
|
||||||
pub(crate) cache: Cache,
|
cache: Cache,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl RegistryClient {
|
impl RegistryClient {
|
||||||
|
/// Return the [`CachedClient`] used by this client.
|
||||||
pub fn cached_client(&self) -> &CachedClient {
|
pub fn cached_client(&self) -> &CachedClient {
|
||||||
&self.client
|
&self.client
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue