Browse Source

🐛 fix a bug.

master
李寻欢 9 months ago
parent
commit
103b4dc017
  1. 5
      main.go

5
main.go

@ -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 {

Loading…
Cancel
Save