-
Notifications
You must be signed in to change notification settings - Fork 726
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
calling store.UpdateFeed and store.UpdateFeedError in a defer function
This makes sure that we are always calling the following functions: * originalFeed.ScheduleNextCheck * store.UpdateFeed * store.UpdateFeedError And we only call them in a single place regardless which branch is taken inside function. The store functions within them will udpate the value in database. This change aims to reduce "unknown unknowns" in the codes. With this change, we won't miss calling above functions.
- Loading branch information
Showing
1 changed file
with
33 additions
and
36 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