|
@@ -1,6 +1,7 @@
|
|
package config
|
|
package config
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
+ "cicv-data-closedloop/aarch64/pji/common/config"
|
|
"cicv-data-closedloop/common/config/c_log"
|
|
"cicv-data-closedloop/common/config/c_log"
|
|
"fmt"
|
|
"fmt"
|
|
"github.com/nacos-group/nacos-sdk-go/v2/clients"
|
|
"github.com/nacos-group/nacos-sdk-go/v2/clients"
|
|
@@ -53,7 +54,7 @@ func InitNacos() {
|
|
registerServiceInstance(client, vo.RegisterInstanceParam{
|
|
registerServiceInstance(client, vo.RegisterInstanceParam{
|
|
//Ip: serviceIp,
|
|
//Ip: serviceIp,
|
|
//Port: uint64(servicePort),
|
|
//Port: uint64(servicePort),
|
|
- ServiceName: serviceName,
|
|
|
|
|
|
+ ServiceName: serviceName + "=" + config.LocalConfig.EquipmentNo,
|
|
//GroupName: "group-a",
|
|
//GroupName: "group-a",
|
|
//ClusterName: "cluster-a",
|
|
//ClusterName: "cluster-a",
|
|
Weight: 10,
|
|
Weight: 10,
|