dedupe apiserver.New

pull/6/head
Kouhei Ueno 2014-08-05 05:11:25 +09:00
parent afa686ccc8
commit c8e1c6a02f
1 changed files with 1 additions and 1 deletions

View File

@ -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,