You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/12/10 11:39:47 UTC

[GitHub] [servicecomb-java-chassis] lbc97 commented on issue #2661: 利用cse实现广播功能,出现如下报错

lbc97 commented on issue #2661:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2661#issuecomment-990899445


   如果想要获取微服务实例,请按照案例(https://servicecomb.apache.org/references/java-chassis/zh_CN/general-development/context.html)使用CustomEndpointDiscoveryFilter过滤器,DiscoveryFilter过滤器并不适用于issue中给出的代码。
   具体原因如下:
   DiscoveryContext context = new DiscoveryContext();初始化时里面的Invocation并没有值,而DiscoveryFilter里面的discovery方法
   则需要Invocation里面的数据去创建微服务实例节点DiscoveryTreeNode。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org