Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Aug 22, 2021
1 parent 395acaf commit c302290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
// return func(next echo.HandlerFunc) echo.HandlerFunc {
// return func(c echo.Context) error {
// timeoutCtx, cancel := context.WithTimeout(c.Request().Context(), timeout)
// c.Request().WithContext(timeoutCtx)
// c.SetRequest(c.Request().WithContext(timeoutCtx))
// defer cancel()
// return next(c)
// }
Expand Down

0 comments on commit c302290

Please sign in to comment.