diff --git a/nacos/client.py b/nacos/client.py index 69efb80..e5248b9 100644 --- a/nacos/client.py +++ b/nacos/client.py @@ -1152,6 +1152,9 @@ def send_heartbeat(self, service_name, ip, port, cluster_name=None, weight=1.0, group_name=DEFAULT_GROUP_NAME): logger.info("[send-heartbeat] ip:%s, port:%s, service_name:%s, namespace:%s" % (ip, port, service_name, self.namespace)) + if "@@" not in service_name and group_name: + service_name = group_name + "@@" + service_name + beat_data = { "serviceName": service_name, "ip": ip, @@ -1287,4 +1290,4 @@ def stop_subscribe(self): stop subscribe timer scheduler :return: """ - self.subscribe_timer_manager.stop() \ No newline at end of file + self.subscribe_timer_manager.stop()