[fix] 修复客户端负载问题

This commit is contained in:
wujiawei 2025-01-22 10:20:26 +08:00
parent a019561c06
commit 7da5f58263

View File

@ -119,6 +119,10 @@ public class ChannelContext {
return null;
}
channels = channels.stream().filter(Channel::isActive).collect(Collectors.toList());
if(ObjectUtils.isEmpty(channels)){
return null;
}
// TODO 负载问题
return channels.get(0);
}