mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Parallelize network requests in uv tree --outdated
(#9280)
## Summary Closes https://github.com/astral-sh/uv/issues/9266.
This commit is contained in:
parent
23cc9b0322
commit
a0de83001c
5 changed files with 51 additions and 27 deletions
|
@ -13,6 +13,11 @@ impl<T> Default for PackageMap<T> {
|
|||
}
|
||||
|
||||
impl<T> PackageMap<T> {
|
||||
/// Insert a value by [`PackageId`].
|
||||
pub fn insert(&mut self, package: Package, value: T) -> Option<T> {
|
||||
self.0.insert(package.id, value)
|
||||
}
|
||||
|
||||
/// Get a value by [`PackageId`].
|
||||
pub(crate) fn get(&self, package_id: &PackageId) -> Option<&T> {
|
||||
self.0.get(package_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue