-
Notifications
You must be signed in to change notification settings - Fork 259
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
oci: Client improvements #1911
Conversation
lann
commented
Oct 18, 2023
- Make Client::pull not silently ignore some IO errors
- De-nest code in a few places
if !entry.file_type().is_file() { | ||
continue; | ||
} |
There was a problem hiding this comment.
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.
if !entry.file_type().is_file() { | ||
continue; | ||
} |
There was a problem hiding this comment.
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(()); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
3e87847
to
ce1827a
Compare