-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a very good example of what context.WithValue is for. The exec handler methods were only passing the requestID downwards the call stack. That value can be considered optional for backwards compat. So, it's a good fit for ctx.Value(), reducing the En passant requestID.
- Loading branch information
1 parent
23c91cd
commit f7b2831
Showing
1 changed file
with
37 additions
and
21 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