Skip to content

Commit

Permalink
Update wording of the warning for goroutine leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ilijamt committed Jan 3, 2021
1 parent be0a3ea commit 76752db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions middleware/timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ func TimeoutWithConfig(config TimeoutConfig) echo.MiddlewareFunc {

done := make(chan error, 1)
go func() {
// This goroutine will not stop even this middleware timeouts,
// unless someone in the next(c) call chain handle ctx.Done() properly
// This goroutine will keep running even if this middleware times out and
// will be stopped when ctx.Done() is called down the next(c) call chain
done <- next(c)
}()

Expand Down

0 comments on commit 76752db

Please sign in to comment.