Skip to content
New issue

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

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

Already on GitHub? # to your account

oci: Client improvements #1911

Merged
merged 1 commit into from
Oct 18, 2023
Merged

oci: Client improvements #1911

merged 1 commit into from
Oct 18, 2023

Conversation

lann
Copy link
Collaborator

@lann lann commented Oct 18, 2023

  • Make Client::pull not silently ignore some IO errors
  • De-nest code in a few places

@lann lann requested a review from vdice October 18, 2023 20:10
Comment on lines +197 to 199
if !entry.file_type().is_file() {
continue;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the actual change here; the rest is just indent.

Comment on lines +238 to +240
if !entry.file_type().is_file() {
continue;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ditto re indent.

let _ = this.cache.write_data(&bytes, &layer.digest).await;
}
},
return anyhow::Ok(());
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@vdice this was the magic that let me change the return type in here.

Copy link
Member

Choose a reason for hiding this comment

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

Nice!

- Make Client::pull not silently ignore some IO errors
- De-nest code in a few places

Signed-off-by: Lann Martin <lann.martin@fermyon.com>
@lann lann force-pushed the oci-client-improvements branch from 3e87847 to ce1827a Compare October 18, 2023 20:13
@lann lann merged commit 329d384 into fermyon:main Oct 18, 2023
9 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants