mirror of
https://github.com/denoland/deno.git
synced 2025-02-14 17:47:35 -05:00
committed to the wrong pr lol
This commit is contained in:
parent
c0e9b2975e
commit
ee9f6c071e
1 changed files with 3 additions and 3 deletions
|
@ -91,7 +91,7 @@ impl NpmResolution {
|
|||
) -> AddPkgReqsResult {
|
||||
// only allow one thread in here at a time
|
||||
let snapshot_lock = self.snapshot.acquire().await;
|
||||
let result = add_package_reqs(
|
||||
let result = add_package_reqs_to_snapshot(
|
||||
&self.api,
|
||||
package_reqs,
|
||||
self.maybe_lockfile.clone(),
|
||||
|
@ -119,7 +119,7 @@ impl NpmResolution {
|
|||
let snapshot_lock = self.snapshot.acquire().await;
|
||||
|
||||
let reqs_set = package_reqs.iter().collect::<HashSet<_>>();
|
||||
let snapshot = add_package_reqs(
|
||||
let snapshot = add_package_reqs_to_snapshot(
|
||||
&self.api,
|
||||
package_reqs,
|
||||
self.maybe_lockfile.clone(),
|
||||
|
@ -259,7 +259,7 @@ impl NpmResolution {
|
|||
}
|
||||
}
|
||||
|
||||
async fn add_package_reqs(
|
||||
async fn add_package_reqs_to_snapshot(
|
||||
api: &CliNpmRegistryApi,
|
||||
package_reqs: &[PackageReq],
|
||||
maybe_lockfile: Option<Arc<CliLockfile>>,
|
||||
|
|
Loading…
Add table
Reference in a new issue