This commit is contained in:
yanweidong 2024-03-21 18:19:05 +08:00
parent 89e10173c2
commit 65cdca43c1
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ func serviceExecute(ls []LocalServices) {
} else {
service.Srv.Stop()
downUrl := service.Srv.OssUrl + service.Srv.FilePath
fmt.Println("Check Microservice", service.Srv.ServiceKey, service.Srv.Version, downUrl)
fmt.Println("Update Microservice", service.Srv.ServiceKey, service.Srv.Version, downUrl)
binPath := filepath.Join(env.MeshEnv.Prefix, service.Srv.ServiceKey)
DownloadFile(downUrl, binPath, func(length, downLen int64) {
fmt.Fprintf(os.Stdout, "Total:%d KB, Current:%d KB, Percent:%.2f%%\r", length, downLen, (float32(downLen)/float32(length))*100)