reactor:【cloud 微服务】EnvLoadBalancerClient 本地调试时,出现为空是相对正常情况,https://t.zsxq.com/hcam5

pull/203/MERGE
YunaiV 2025-08-16 21:23:06 +08:00
parent b4df6f93cb
commit c55fe616b6
1 changed files with 0 additions and 1 deletions

View File

@ -96,7 +96,6 @@ public class EnvLoadBalancerClient implements ReactorServiceInstanceLoadBalancer
List<ServiceInstance> chooseInstances = CollectionUtils.filterList(instances, instance -> StrUtil.isEmpty(EnvUtils.getTag(instance)));
// 【重要】补充说明:如果希望在 chooseInstances 为空时,不允许打到有 tag 的实例,可以取消注释下面的代码
if (CollUtil.isEmpty(chooseInstances)) {
log.warn("[getInstanceResponseWithoutTag][serviceId({}) 没有不带 tag 的服务实例列表,直接使用所有服务实例列表]", serviceId);
chooseInstances = instances;
}