Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove timeout middleware (#16573)

p0ny8cc75bb3f23c
diff --git a/backend/server/routers.go b/backend/server/routers.go
index 1eac2785e7..046b20e55c 100644
--- a/backend/server/routers.go
+++ b/backend/server/routers.go
@@ -3,7 +3,6 @@ package server
import (
"log/slog"
"net/http"
- "strings"
grpcruntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"github.com/labstack/echo-contrib/prometheus"
@@ -47,18 +46,6 @@ func configureEchoRouters(
e.HideBanner = true
e.HidePort = true
- grpcSkipper := func(c echo.Context) bool {
- // Skip grpc and webhook calls.
- return strings.HasPrefix(c.Request().URL.Path, "/bytebase.v1.") ||
- strings.HasPrefix(c.Request().URL.Path, "/v1:adminExecute") ||
- strings.HasPrefix(c.Request().URL.Path, lspAPI) ||
- strings.HasPrefix(c.Request().URL.Path, webhookAPIPrefix)
- }
- e.Use(middleware.TimeoutWithConfig(middleware.TimeoutConfig{
- Skipper: grpcSkipper,
- Timeout: 0, // unlimited
- }))
-
registerPprof(e, &profile.RuntimeDebug)
p := prometheus.NewPrometheus("api", nil)