@@ -87,6 +87,7 @@ func main() {
if err != nil {
panic(err)
}
+ defer etcdClient.Close()
// 配置中心
bc, err := conf.InitConfig([]conf.Source{ // 优先级从低到高