dubbo-go icon indicating copy to clipboard operation
dubbo-go copied to clipboard

config.GetConsumerServiceByInterfaceName方法bug

Open fightGitHub93 opened this issue 3 years ago • 5 comments

同一个interface,group不同,注册多个服务的时候,config.GetConsumerServiceByInterfaceName只会返回最后一个服务实列

fightGitHub93 avatar Jul 05 '22 03:07 fightGitHub93

使用config.SetConsumerService注册服务时,也不能通过传参的方式注册不同group的服务,只能硬编码注册。

fightGitHub93 avatar Jul 05 '22 03:07 fightGitHub93

@zhaoyunxing92

AlexStocks avatar Jul 08 '22 13:07 AlexStocks

GetConsumerServiceByInterfaceName 这个方法只能在启动的时候才用到

zhaoyunxing92 avatar Jul 17 '22 16:07 zhaoyunxing92

@fightGitHub93 或许是我们没有get 到你的诉求。 在这个 issue 中 @zhaoyunxing92 给你的这个 answer 是否满意?如果有异议,请及时在 issue 中回复。

AlexStocks avatar Jul 20 '22 10:07 AlexStocks

用户是想获取 Group 下的所有的服务。

AlexStocks avatar Jul 22 '22 13:07 AlexStocks