Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
214017b8
Commit
214017b8
authored
Jul 04, 2018
by
Ge Jun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quote added code in last commit with the thrift macro
parent
7320fa5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
status_service.cpp
src/brpc/builtin/status_service.cpp
+4
-0
No files found.
src/brpc/builtin/status_service.cpp
View file @
214017b8
...
...
@@ -22,7 +22,9 @@
#include "brpc/details/method_status.h" // MethodStatus
#include "brpc/builtin/status_service.h"
#include "brpc/nshead_service.h" // NsheadService
#ifdef ENABLE_THRIFT_FRAMED_PROTOCOL
#include "brpc/thrift_service.h" // ThriftService
#endif
#include "brpc/rtmp.h" // RtmpService
#include "brpc/builtin/common.h"
...
...
@@ -188,6 +190,7 @@ void StatusService::default_method(::google::protobuf::RpcController* cntl_base,
nshead_svc
->
_status
->
Describe
(
os
,
desc_options
);
os
<<
'\n'
;
}
#ifdef ENABLE_THRIFT_FRAMED_PROTOCOL
const
ThriftService
*
thrift_svc
=
server
->
options
().
thrift_service
;
if
(
thrift_svc
&&
thrift_svc
->
_status
)
{
DescribeOptions
options
;
...
...
@@ -199,6 +202,7 @@ void StatusService::default_method(::google::protobuf::RpcController* cntl_base,
thrift_svc
->
_status
->
Describe
(
os
,
desc_options
);
os
<<
'\n'
;
}
#endif
if
(
policy
::
g_server_msg_status
)
{
DescribeOptions
options
;
options
.
verbose
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment