-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix sleep on non-renewable vault secrets
An over-zealous refactoring resulted in <-time.After() channel used for non-renewable sleep to be ignored. I originally had channel of the time channels but "simplified" it too much. This reworks it the way the sleep is passed to the next iteration to just pass the time.Duration of the sleep down the channel, then time.Sleep-ing when reading off the channel. This way it can see it has a sleep to do, then do it instead of skipping it as the time hadn't passed yet. This also let me write a test for it as I don't need to actually sleep to see that there is something in the channel. Fixes #1272
- Loading branch information
Showing
4 changed files
with
79 additions
and
8 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
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