-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/accesslogs: rework sequentialUploader's shutdown
The "fix" for uploader's shutdown introduced in b29f6d4 has sadly only moved the problem somewhere else. This change aims to fix the shutdown of sequentialUploader while maintaining the following invariants: - after close is called, uploader realizes that the shutdown has begun - starts working until the queue is empty, then shuts down - close is blocked until uploader drains the current upload queue Change-Id: I5cd7aee93d9703eef4c5b576b3ee2f3fac220171
- Loading branch information
Showing
2 changed files
with
56 additions
and
32 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