-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move retrying out of UploadWithSHA1 since it can't seek
The B2 API is explicit about having to retry on transient upload errors, but obviously that's not something we can do with a plain io.Reader. Moved the retry code in Upload, where we have ways of seeking since we have to do that already for the SHA1 calculation.
- Loading branch information
1 parent
ff2f66f
commit 970cc75
Showing
2 changed files
with
57 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters