Use HTTPWriteTimeout constant for request timeout

This commit is contained in:
2026-01-08 02:22:25 -08:00
parent bf24a310bc
commit 0eb6193431

View File

@@ -2,7 +2,6 @@ package server
import (
"net/http"
"time"
sentryhttp "github.com/getsentry/sentry-go/http"
"github.com/go-chi/chi/v5"
@@ -24,7 +23,7 @@ func (s *Server) SetupRoutes() {
}
s.router.Use(s.mw.CORS())
s.router.Use(middleware.Timeout(60 * time.Second))
s.router.Use(middleware.Timeout(HTTPWriteTimeout))
if s.sentryEnabled {
sentryHandler := sentryhttp.New(sentryhttp.Options{