diff --git a/pkg/webhooks/middleware.go b/pkg/webhooks/middleware.go deleted file mode 100644 index 4fb44ae4f8..0000000000 --- a/pkg/webhooks/middleware.go +++ /dev/null @@ -1,15 +0,0 @@ -package webhooks - -import ( - "net/http" - "time" -) - -func timeoutHandler(h http.Handler, timeout time.Duration) http.HandlerFunc { - return func(w http.ResponseWriter, r *http.Request) { - var timeoutHandler http.Handler - msg := "ok" - timeoutHandler = http.TimeoutHandler(h, timeout*time.Second, msg) - timeoutHandler.ServeHTTP(w, r) - } -}