sofastack / sofa-rpc-boot-projects

SOFABoot projects for SOFARPC, include starter and samples.
https://github.com/sofastack/sofa-rpc
Apache License 2.0
292 stars 117 forks source link

关于使用@SofaReference的问题 #58

Closed lantianqiongfeng closed 6 years ago

lantianqiongfeng commented 6 years ago

在使用@SofaReference的客户端来引用RPC服务,使用方式如下: @SofaReference(interfaceType = HelloSyncService.class, binding = @SofaReferenceBinding(bindingType = "bolt",invokeType = "sync")) private HelloSyncService helloSyncService;

但是在调试过程中发现ConsumerConfigHelper中getConsumerConfig时, String type = param.getType(); if (StringUtils.hasText(type)) { consumerConfig.setInvokeType(type); } 发现consumerConfig的invokeType发生了改变,变成了BOLT,导致后续报错,请问我这是否有问题

leizhiyuan commented 6 years ago

@lantianqiongfeng 不好意思,目前你使用的版本应该存在 bug. 使用 master 打一个包试下

lantianqiongfeng commented 6 years ago

好的,我重新试试

leizhiyuan commented 6 years ago

恩,这个会在5.4.1里 fix 掉.

JervyShi commented 6 years ago

Link to https://github.com/alipay/sofa-rpc-boot-projects/pull/54