clean proxy service (#5812)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
pull/5802/head^2
Cai Yudong 2021-06-16 18:19:57 +08:00 committed by GitHub
parent bbcacc1880
commit f28403b99b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 17 deletions

View File

@ -136,23 +136,6 @@ func (gp *BaseTable) tryloadFromEnv() {
panic(err)
}
proxyServiceAddress := os.Getenv("PROXY_SERVICE_ADDRESS")
if proxyServiceAddress == "" {
addr, err := gp.Load("proxyService.address")
if err != nil {
panic(err)
}
proxyServicePort, err := gp.Load("proxyService.port")
if err != nil {
panic(err)
}
proxyServiceAddress = addr + ":" + proxyServicePort
}
err = gp.Save("_PROXY_SERVICE_ADDRESS", proxyServiceAddress)
if err != nil {
panic(err)
}
indexBuilderAddress := os.Getenv("INDEX_SERVICE_ADDRESS")
if indexBuilderAddress == "" {
indexBuilderHost, err := gp.Load("indexService.address")