Ver código fonte

注释代码

WH01243 2 anos atrás
pai
commit
afbcd6379c
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      jyBXBase/rpc/init/init.go

+ 2 - 2
jyBXBase/rpc/init/init.go

@@ -51,8 +51,8 @@ func init() {
 	RedisInit(&DB.Redis)
 	//初始es
 	EsInit(&DB.Es)
-	//Middleground = middleground.NewMiddleground(C.Etcd.Hosts).
-	Middleground = middleground.NewMiddleground([]string{"192.168.3.149:2379"}).
+	Middleground = middleground.NewMiddleground(C.Etcd.Hosts).
+		//Middleground = middleground.NewMiddleground([]string{"192.168.3.149:2379"}).
 		RegUserCenter(C.UserCenterKey).
 		RegPowerCheckCenter(C.PowerCheckCenterKey).
 		RegEntManageApplication(C.EntManageApplication)