-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
brpc-thrift支持多参数 #467
Comments
这是个已知问题,目前的thrift实现只支持一个请求,并且假定了请求的field number是1。多个的话要对代码做一些调整。 |
@jamesge 这个调整,brpc有计划何时合入吗? |
这个调整还没有开发过,你有兴趣的话可以自己先看一下 |
@jamesge ge老师,我抓包看了下CallMethod单参数请求和thrift多参数的区别,我目前将src/brpc/policy/thrift_protocol.cpp中如下结构体序列化部分如下3行注释后, |
我的原始thrift接口如下:
service Test {
PostListResult BatchGetVideoFeedFromCacheByTime(1:i32 uid, 2:i32 timestamp, 3:i32 start 4:i32 count);
}
我用原生thrift接口参数填写为多个,可调用成功。
CallMethod支持有限参数,如下:
_stub->CallMethod("BatchGetVideoFeedFromCacheByTime", &controller, &request, &resp, NULL);
如何在不修改原始thrift接口的情况下,使用brpc-thrift用多参数的形式访问呢?请问这个目前有办法做吗?
The text was updated successfully, but these errors were encountered: