-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to update state when cache or SLURM changes
Before this commit the new stayrtr state was only recalculated when the validated cache changed. This commit refactors the update loop and separates the actual update from pulling the updated cache. The update is triggered when the SLURM file changes _or_ when the validated cache changes. Should fix cloudflare/gortr#95 and make further changes that trigger an update when an update in the cache has expired easier.
- Loading branch information
Showing
1 changed file
with
66 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