Prevent multiple concurrent requests for packages

Fixes #38
Fixes #41
This commit is contained in:
MICHAEL JACKSON
2017-08-10 22:11:55 -07:00
parent cb8061f3e1
commit a485858381
9 changed files with 207 additions and 200 deletions

View File

@ -58,7 +58,7 @@ function getPackageInfo(packageName, callback) {
} else if (value) {
callback(null, value === PackageNotFound ? null : value)
} else {
fetchMutex(packageName, callback)
fetchMutex(packageName, packageName, callback)
}
})
}