forked from mholt/archiver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework ArchiveAsync interface to make it return any archiving errors
After experience with the current ArchiveAsync interface while creating an rclone backend it became clear that it wasn't quite right. With the old interface, callers did not know when the File had been archived and thus did not know when to release resources associated with that file. This patch changes the interface so that it returns the error archiving each File. This means the caller can know when the File has been archived and when to release resources. It returns the error for each file archived which is useful too. Fixes mholt#368
- Loading branch information
Showing
3 changed files
with
29 additions
and
24 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
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