nacos-sdk-python
nacos-sdk-python copied to clipboard
namespace "public" is "" in program,add_naming_instance and send_heartbeat cluster_name is different when this parameter is not entered
why is the "public" namespace be "" client.add_naming_instance("", "1.0.0.7", 8080)
client.add_naming_instance("test.service1", "1.0.0.7", 8080) the cluster name will be None
client.send_heartbeat("test.service1", "1.0.0.7", 8080) the cluster name will be DEFAULT
namespace参数写上public
后,会出现两个集群,过一段时间集群名为None
的会消失 ,剩下DEFAULT
。