Skip to content

Commit 50278d3

Browse files
author
fishtailfu
committed
fix: fix oom risk
1 parent 061eecb commit 50278d3

File tree

1 file changed

+3
-2
lines changed
  • polaris-plugins/polaris-plugins-connector/connector-nacos/src/main/java/com/tencent/polaris/plugins/connector/nacos

1 file changed

+3
-2
lines changed

polaris-plugins/polaris-plugins-connector/connector-nacos/src/main/java/com/tencent/polaris/plugins/connector/nacos/NacosService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,11 @@ public void asyncGetInstances(ServiceUpdateTask serviceUpdateTask) {
191191
nacosEventListener = new NacosEventListener(serviceUpdateTask, nacosContext);
192192
namingService.subscribe(serviceUpdateTask.getServiceEventKey().getService(), nacosContext.getGroupName(),
193193
nacosEventListener);
194+
LOG.debug("[NacosConnector] Subscribe instances of {} success. ",
195+
serviceUpdateTask.getServiceEventKey().getService());
194196
}
195197

196-
LOG.debug("[NacosConnector] Subscribe instances of {} success. ",
197-
serviceUpdateTask.getServiceEventKey().getService());
198+
198199
} catch (NacosException nacosException) {
199200
String errorMsg = String.format("subscribe nacos service instances of %s failed.",
200201
serviceUpdateTask.getServiceEventKey().getService());

0 commit comments

Comments
 (0)