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: should init binary adapter before reuse it #393

Merged
merged 6 commits into from
Feb 5, 2023

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Feb 5, 2023

No description provided.

@fengmk2 fengmk2 added the bug Something isn't working label Feb 5, 2023
@fengmk2 fengmk2 marked this pull request as draft February 5, 2023 02:12
@fengmk2 fengmk2 marked this pull request as ready for review February 5, 2023 02:58
@fengmk2 fengmk2 mentioned this pull request Feb 5, 2023
Copy link
Contributor

@killagu killagu left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Feb 5, 2023

Codecov Report

Merging #393 (0fff1d4) into master (f873b8d) will decrease coverage by 0.18%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #393      +/-   ##
==========================================
- Coverage   97.59%   97.41%   -0.18%     
==========================================
  Files         152      152              
  Lines       13139    13193      +54     
  Branches     1698     1705       +7     
==========================================
+ Hits        12823    12852      +29     
- Misses        316      341      +25     
Impacted Files Coverage Δ
app/common/FileUtil.ts 100.00% <100.00%> (ø)
app/common/adapter/binary/AbstractBinary.ts 94.05% <100.00%> (+0.05%) ⬆️
app/common/adapter/binary/ApiBinary.ts 91.89% <100.00%> (+0.98%) ⬆️
app/common/adapter/binary/BucketBinary.ts 100.00% <100.00%> (ø)
app/common/adapter/binary/CypressBinary.ts 100.00% <100.00%> (ø)
app/common/adapter/binary/ElectronBinary.ts 100.00% <100.00%> (ø)
app/common/adapter/binary/GithubBinary.ts 92.45% <100.00%> (+0.29%) ⬆️
app/common/adapter/binary/ImageminBinary.ts 100.00% <100.00%> (ø)
app/common/adapter/binary/NodeBinary.ts 100.00% <100.00%> (ø)
app/common/adapter/binary/NodePreGypBinary.ts 100.00% <100.00%> (ø)
... and 9 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@fengmk2 fengmk2 merged commit b9985ab into master Feb 5, 2023
@fengmk2 fengmk2 deleted the ignore-exists-binary-file branch February 5, 2023 03:34
fengmk2 pushed a commit that referenced this pull request Feb 5, 2023
[skip ci]

## [3.2.6](v3.2.5...v3.2.6) (2023-02-05)

### Bug Fixes

* should init binary adapter before reuse it ([#393](#393)) ([b9985ab](b9985ab))
@github-actions
Copy link

github-actions bot commented Feb 5, 2023

🎉 This PR is included in version 3.2.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

}
return await this.eggObjectFactory.getEggObject(AbstractBinary, binaryConfig.type);
await binaryAdapter.init(binaryName);
Copy link
Member Author

Choose a reason for hiding this comment

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

SingletonProto 有一个 init 方法约定,正好冲突了,我改改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants