-
Notifications
You must be signed in to change notification settings - Fork 251
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
feat(send queue): retry uploads #4232
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4232 +/- ##
==========================================
+ Coverage 84.93% 84.95% +0.02%
==========================================
Files 274 274
Lines 29726 29742 +16
==========================================
+ Hits 25247 25268 +21
+ Misses 4479 4474 -5 ☔ View full report in Codecov by Sentry. |
01889de
to
2394995
Compare
2394995
to
54e9e06
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.
Looks reasonable, good work.
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.
Great!
self.client.send(request, Some(request_config)) | ||
} | ||
|
||
/// Returns a reasonable upload timeout for an upload, based on the size of | ||
/// the data to be uploaded. | ||
pub(crate) fn reasonable_upload_timeout(data: &[u8]) -> Duration { |
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 like the name 👍
54e9e06
to
e1b77f6
Compare
A small foresight from the initial PR:
RequestConfig
for upload, plain or encryptedPart of #1732.