From c8e1c6a02fd0fc00ba8fb5ec49790070a2f27d39 Mon Sep 17 00:00:00 2001 From: Kouhei Ueno Date: Tue, 5 Aug 2014 05:11:25 +0900 Subject: [PATCH] dedupe apiserver.New --- pkg/master/master.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/master/master.go b/pkg/master/master.go index 2729369aced..a06ee1ee44e 100644 --- a/pkg/master/master.go +++ b/pkg/master/master.go @@ -128,7 +128,7 @@ func (m *Master) init(cloud cloudprovider.Interface, podInfoGetter client.PodInf func (m *Master) Run(myAddress, apiPrefix string) error { s := &http.Server{ Addr: myAddress, - Handler: apiserver.New(m.storage, apiPrefix), + Handler: m.ConstructHandler(apiPrefix), ReadTimeout: 10 * time.Second, WriteTimeout: 10 * time.Second, MaxHeaderBytes: 1 << 20,