Explorar o código

feat: etcd client 补上 close

lihf hai 8 meses
pai
achega
c751549bcc
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      cmd/server/main.go

+ 1 - 0
cmd/server/main.go

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