From 76752db35150d6dd16e534eb10823ed15a8f39ff Mon Sep 17 00:00:00 2001 From: Ilija Matoski Date: Sun, 3 Jan 2021 18:32:03 +0100 Subject: [PATCH] Update wording of the warning for goroutine leaks --- middleware/timeout.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware/timeout.go b/middleware/timeout.go index f5ff8fad8..d146541e6 100644 --- a/middleware/timeout.go +++ b/middleware/timeout.go @@ -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) }()