From 838d7c9049439b5997f0947258e183d677788475 Mon Sep 17 00:00:00 2001 From: Adarsh-verma-14 Date: Wed, 7 Aug 2024 02:56:49 +0530 Subject: [PATCH] remove duplicate call for ServeMux --- staging/src/k8s.io/apiserver/pkg/server/handler.go | 1 - 1 file changed, 1 deletion(-) diff --git a/staging/src/k8s.io/apiserver/pkg/server/handler.go b/staging/src/k8s.io/apiserver/pkg/server/handler.go index 847a624e36b..b829ade745c 100644 --- a/staging/src/k8s.io/apiserver/pkg/server/handler.go +++ b/staging/src/k8s.io/apiserver/pkg/server/handler.go @@ -77,7 +77,6 @@ func NewAPIServerHandler(name string, s runtime.NegotiatedSerializer, handlerCha } gorestfulContainer := restful.NewContainer() - gorestfulContainer.ServeMux = http.NewServeMux() gorestfulContainer.Router(restful.CurlyRouter{}) // e.g. for proxy/{kind}/{name}/{*} gorestfulContainer.RecoverHandler(func(panicReason interface{}, httpWriter http.ResponseWriter) { logStackOnRecover(s, panicReason, httpWriter)