Skip to content

Commit

Permalink
Fix timeout middleware docs (fixes #1816) (#1836)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Apr 6, 2021
1 parent ae4665c commit 10d8c53
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 @@ -42,8 +42,8 @@ var (
}
)

// Timeout returns a middleware which recovers from panics anywhere in the chain
// and handles the control to the centralized HTTPErrorHandler.
// Timeout returns a middleware which returns error (503 Service Unavailable error) to client immediately when handler
// call runs for longer than its time limit. NB: timeout does not stop handler execution.
func Timeout() echo.MiddlewareFunc {
return TimeoutWithConfig(DefaultTimeoutConfig)
}
Expand Down

0 comments on commit 10d8c53

Please sign in to comment.