🐛 fix a bug.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
李寻欢 2021-08-31 10:16:08 +08:00
parent 490e2ffb45
commit 103b4dc017

View File

@ -42,7 +42,7 @@ func initNacos() {
}
portNum, _ := strconv.Atoi(port)
pp := uint64(portNum)
success, _ := client.RegisterInstance(vo.RegisterInstanceParam{
success, err := client.RegisterInstance(vo.RegisterInstanceParam{
Ip: "172.30.0.90",
Port: pp,
Weight: 10,
@ -50,6 +50,9 @@ func initNacos() {
ServiceName: "api1",
})
log.Println("Nacos注册结果: ", success)
if err != nil {
log.Println("Nacos注册错误信息: ", err.Error())
}
configClient, err := clients.NewConfigClient(configParam)
if err != nil {