-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shutdown close channel returned by RequestCtx.Done
RequestCtx.Done() now returns a channel that will be closed when Server.Shutdown() is called.
- Loading branch information
1 parent
9574c37
commit 51532b9
Showing
2 changed files
with
53 additions
and
18 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
51532b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello
when I try to use the new feature, I got a panic.
the reason is: method
Err()
returns nil hard coded, but the documentation is explicitA better solution can be
example of panic:
where
/usr/local/go/src/context/context.go:350