Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use nfs download api #461

Merged
merged 1 commit into from
May 6, 2023
Merged

fix: use nfs download api #461

merged 1 commit into from
May 6, 2023

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented May 6, 2023

No description provided.

@fengmk2 fengmk2 requested a review from elrrrrrrr May 6, 2023 08:16
@@ -34,6 +38,8 @@ export interface NFSClient {

createDownloadStream(key: string): Promise<Readable | undefined>;

download(key: string, filepath: string, options: DownloadOptions): Promise<void>;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elrrrrrrr 需要使用 download 接口,stream 模式在 cnpmjs.org 服务器卡住了。文件没有下载完,大小都是一个。

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

学习了 🙇

@codecov
Copy link

codecov bot commented May 6, 2023

Codecov Report

Merging #461 (447d2c3) into master (51cd044) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #461   +/-   ##
=======================================
  Coverage   97.46%   97.47%           
=======================================
  Files         166      166           
  Lines       15407    15428   +21     
  Branches     1994     1996    +2     
=======================================
+ Hits        15017    15038   +21     
  Misses        390      390           
Impacted Files Coverage Δ
app/common/adapter/NFSAdapter.ts 100.00% <100.00%> (ø)
app/common/typing.ts 100.00% <100.00%> (ø)
app/core/service/PackageVersionFileService.ts 93.15% <100.00%> (-0.05%) ⬇️
app/infra/NFSClientAdapter.ts 87.20% <100.00%> (+0.62%) ⬆️
app/repository/DistRepository.ts 93.50% <100.00%> (+0.45%) ⬆️

@fengmk2 fengmk2 merged commit bb16957 into master May 6, 2023
@fengmk2 fengmk2 deleted the use-nfs-download branch May 6, 2023 08:31
fengmk2 pushed a commit that referenced this pull request May 6, 2023
[skip ci]

## [3.20.1](v3.20.0...v3.20.1) (2023-05-06)

### Bug Fixes

* use nfs download api ([#461](#461)) ([bb16957](bb16957))
@github-actions
Copy link

github-actions bot commented May 6, 2023

🎉 This PR is included in version 3.20.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@elrrrrrrr
Copy link
Member

会引入一个不兼容的变更,需要 nfsClient 实现 download 方法 🤔

@fengmk2
Copy link
Member Author

fengmk2 commented May 10, 2023

会引入一个不兼容的变更,需要 nfsClient 实现 download 方法 🤔

第一个版本的 nfsClient 规范就有 download 方法约定的 https://github.com/cnpm/cnpmjs.org/wiki/NFS-Guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants