-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure lowest-level data takes priority (#44)
changes data cascade behavior in errors to prioritize the earliest-seeded data in all cases. Ex: if an earlier error return contains a k:v pair, a higher layer wrap on that error should not be able to replace the value for that key, whether through With() calls or WC(ctx). The ultimate result of this is that no caller will need to consider if they're choosing the "right time" to add a value or embed the context. It's always going to be correct, with priority favoring the earliest error.
- Loading branch information
1 parent
069212a
commit bbc6bfe
Showing
3 changed files
with
88 additions
and
37 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