Unverified Commit a17c88b3 authored by Ge Jun's avatar Ge Jun Committed by GitHub

Merge pull request #374 from kenshinxf/kenshinxf

Fix thrift doc method_name issue.
parents 8e156bee 8000e5fa
......@@ -95,7 +95,7 @@ public:
example::EchoRequest* req = request->Cast<example::EchoRequest>();
example::EchoResponse* res = response->Cast<example::EchoResponse>();
       // 通过cntl->thrift_method_name()获得被访问的方法名
       // 通过request->method_name()获得被访问的方法名, 必须在Cast()被调用之后
       if (_native_handler) {
_native_handler->Echo(*res, *req);
} else {
......
......@@ -95,7 +95,7 @@ public:
example::EchoRequest* req = request->Cast<example::EchoRequest>();
example::EchoResponse* res = response->Cast<example::EchoResponse>();
       // Get method-name for thrift via cntl->thrift_method_name()
       // Get method-name for thrift via request->method_name() after Cast() was called
       if (_native_handler) {
_native_handler->Echo(*res, *req);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment