Skip to content

Commit 76752db

Browse files
committed
Update wording of the warning for goroutine leaks
1 parent be0a3ea commit 76752db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

middleware/timeout.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ func TimeoutWithConfig(config TimeoutConfig) echo.MiddlewareFunc {
6262

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

0 commit comments

Comments
 (0)