-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ctx): add Context management to RequestConfig struct
- Add a Context field to the RequestConfig struct - Initialize the Context field with a default value in the New function - Implement a SetContext method to update the Context field - Update the initTest function to use the RequestConfig's Context instead of a new background context Signed-off-by: appleboy <appleboy.tw@gmail.com>
- Loading branch information
Showing
1 changed file
with
22 additions
and
2 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