mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-26 11:02:01 -04:00
feat: limit network concurrency
This commit is contained in:
@@ -23,6 +23,7 @@ const defaults = () => (<StrictPnpmOptions>{
|
||||
depth: 0,
|
||||
engineStrict: false,
|
||||
metaCache: new Map(),
|
||||
networkConcurrency: 16,
|
||||
})
|
||||
|
||||
export default (opts?: PnpmOptions): StrictPnpmOptions => {
|
||||
|
||||
@@ -87,7 +87,7 @@ async function installInContext (installType: string, packagesToInstall: Depende
|
||||
tag: opts.tag,
|
||||
engineStrict: opts.engineStrict,
|
||||
nodeVersion: opts.nodeVersion,
|
||||
got: createGot(client),
|
||||
got: createGot(client, {networkConcurrency: opts.networkConcurrency}),
|
||||
fetchingFiles: Promise.resolve(),
|
||||
baseNodeModules: nodeModulesPath,
|
||||
metaCache: opts.metaCache,
|
||||
|
||||
Reference in New Issue
Block a user