mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-19 05:32:16 +01:00
chore: use echo.WrapHandler for health route
This commit is contained in:
@@ -382,11 +382,7 @@ func (a *API) Start() error {
|
|||||||
checks := append(a.healthChecks, health.WithTimeout(a.processTimeout))
|
checks := append(a.healthChecks, health.WithTimeout(a.processTimeout))
|
||||||
checker := health.NewChecker(checks...)
|
checker := health.NewChecker(checks...)
|
||||||
|
|
||||||
return func(echoCtx echo.Context) error {
|
return echo.WrapHandler(health.NewHandler(checker))
|
||||||
health.NewHandler(checker).ServeHTTP(echoCtx.Response().Writer, echoCtx.Request())
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}(),
|
}(),
|
||||||
timeoutMiddleware(hardTimeout),
|
timeoutMiddleware(hardTimeout),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user