Skip to content

Commit 45f8688

Browse files
committed
[fit] 修改代码格式错误
1 parent 1385ed9 commit 45f8688

File tree

1 file changed

+2
-13
lines changed
  • framework/fit/java/fit-builtin/plugins/fit-service-coordination-nacos/src/main/java/modelengine/fit/service/server

1 file changed

+2
-13
lines changed

framework/fit/java/fit-builtin/plugins/fit-service-coordination-nacos/src/main/java/modelengine/fit/service/server/NacosRegistryServer.java

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,6 @@ private HashMap<String, String> buildInstanceMetadata(Worker worker, Application
197197
return metadata;
198198
}
199199

200-
/**
201-
* Set properties for service instance, including weight and ephemeral status.
202-
*
203-
* @param instance The service instance object.
204-
*/
205200
private void setInstanceProperties(Instance instance) {
206201
if (!this.nacosConfig.getIsEphemeral()) {
207202
instance.setEphemeral(false);
@@ -220,15 +215,9 @@ public void unregisterFitables(List<FitableInfo> fitables, String workerId) {
220215
}
221216
}
222217

223-
/**
224-
* Unregister a single Fitable and all its matching instances.
225-
*
226-
* @param fitable The {@link Fitable} information to unregister
227-
* @param workerId The worker node ID
228-
*/
229218
private void unregisterSingleFitable(FitableInfo fitable, String workerId) {
230-
String groupName = getGroupName(fitable);
231-
String serviceName = getServiceName(fitable);
219+
String groupName = this.getGroupName(fitable);
220+
String serviceName = this.getServiceName(fitable);
232221
try {
233222
List<Instance> instances = this.namingService.selectInstances(serviceName, groupName, true);
234223
this.unregisterMatchingInstances(instances, workerId, serviceName, groupName);

0 commit comments

Comments
 (0)