-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix batch persisted callback for upsidedown (#1209)
previous implementation would only execute the callback if the control flow reached the end of the function unfortunately there are other explicit returns earlier in the function users setting a callback, would reasonably expect it to always be called (passing either nil or an err) and due to this bug, certain error conditions resulted in the callback not firing this change checks for the callback, and if present defers execution of the callback, ensuring it will always be executed
- Loading branch information
Showing
2 changed files
with
50 additions
and
4 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