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

nydus-image:optimize chunkdict save #1430

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

cslinwang
Copy link
Contributor

Relevant Issue (if applicable)

If there are Issues related to this PullRequest, please list it.

Details

Refactor the Deduplicate implementation to only
initialize config when inserting chunk data.
Simplify code for better maintainability.

Types of changes

What types of changes does your PullRequest introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation Update (if none of the other choices apply)

Checklist

Go over all the following points, and put an x in all the boxes that apply.

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@cslinwang cslinwang requested a review from a team as a code owner September 19, 2023 06:06
@cslinwang cslinwang requested review from jiangliu, luodw and adamqqqplay and removed request for a team September 19, 2023 06:06
@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #1430 (d28bbb5) into master (d2fcfcd) will decrease coverage by 0.02%.
The diff coverage is 4.76%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1430      +/-   ##
==========================================
- Coverage   46.46%   46.44%   -0.02%     
==========================================
  Files         123      123              
  Lines       38643    38640       -3     
  Branches    38643    38640       -3     
==========================================
- Hits        17954    17947       -7     
- Misses      19716    19719       +3     
- Partials      973      974       +1     
Files Changed Coverage Δ
src/bin/nydus-image/deduplicate.rs 52.33% <0.00%> (-1.19%) ⬇️
src/bin/nydus-image/main.rs 41.89% <20.00%> (+0.26%) ⬆️

... and 3 files with indirect coverage changes

Refactor the Deduplicate implementation to only
initialize config when inserting chunk data.
Simplify code for better maintainability.

Signed-off-by: Lin Wang <l.wang@mail.dlut.edu.cn>
@imeoer imeoer merged commit 278915b into dragonflyoss:master Sep 22, 2023
23 of 24 checks passed
@@ -399,7 +398,7 @@ fn prepare_cmd_args(bti_string: &'static str) -> App {
)
.arg(arg_output_json.clone())
)
);
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't believe that cargo fmt didn't find this...

Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems cargo fmt is broken from L164. 😂

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

Successfully merging this pull request may close these issues.

None yet

3 participants