From 8088fada795fbe0c49733d5416c5e7d8d490fce0 Mon Sep 17 00:00:00 2001 From: pujielan <524086595@qq.com> Date: Sun, 24 Dec 2017 21:26:21 +0800 Subject: [PATCH] [FIX]Fix etcd connection in define resource --- pkg/api/handler/service.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/api/handler/service.go b/pkg/api/handler/service.go index 7e831d212..cb531d132 100644 --- a/pkg/api/handler/service.go +++ b/pkg/api/handler/service.go @@ -86,7 +86,6 @@ func CreateManager(conf option.Config) (*ServiceAction, error) { logrus.Errorf("create etcd client v3 error, %v", err) return nil, err } - defer etcdCli.Close() return &ServiceAction{ MQClient: mqClient, KubeClient: kubeClient,