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
refactor(cli): remove unpaid/paid distinction from chunk manager #1022
refactor(cli): remove unpaid/paid distinction from chunk manager #1022
Conversation
} | ||
} | ||
} | ||
progress_bar.finish_and_clear(); | ||
|
||
// report errors | ||
let failed_payments = chunk_manager.get_unpaid_chunks(); |
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.
I think this would not have worked prior to the changes too as we call mark_paid and mark_verfied
right after each other.
I don't think we have any way to just know if the payment alone failed?
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.
Indeed! Although we might want to keep printing out pay errors.
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.
By checking recorded_pay_errors.len()
instead
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.
Ah I see! Updated the PR.
675dd86
to
a9fac3d
Compare
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.
LGTM
a9fac3d
to
cd7c535
Compare
Closes #997
Description
Summary generated by Reviewpad on 29 Nov 23 18:13 UTC
This pull request includes changes related to the upload of file chunks.
unpaid_chunks_to_upload
andunpaid_chunks_to_upload_len
have been renamed tochunks_to_upload
andchunks_to_upload_len
, respectively.chunks_to_upload_len
instead ofunpaid_chunks_to_upload_len
.mark_paid
andmark_verified
have been replaced withmark_completed
.failed_payments
,failed_uploads
,failed_payments_len
, andtotal_failures
have been removed.{chunks_to_upload_len}
.These changes improve the upload process and provide better logging information.