-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
> When accessing the unpkg service, when the packages have not yet been synchronized, will lead to multiple synchronization attempts concurrently causing db insert errors. * 🔒 Added a Redis lock for the `ensurePackageVersionFilesSync` function, with a default timeout of 60 seconds. * 🥸 Admin PUT requests and the package version auto sync process are not restricted by this. > 当访问 unpkg 服务时,如果访问存量未同步的包,可能导致多次同步并发报错 * 🔒 为 ensurePackageVersionFilesSync 添加 redis 锁,默认超时 60s * 🥸 管理员手动 PUT 请求和包同步流程不受限制
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters