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
8e350548
Commit
8e350548
authored
Jul 17, 2018
by
Ge Jun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
515a8d0b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
periodic_naming_service.cpp
src/brpc/periodic_naming_service.cpp
+0
-2
server.cpp
src/brpc/server.cpp
+5
-5
ts.cpp
src/brpc/ts.cpp
+0
-1
No files found.
src/brpc/periodic_naming_service.cpp
View file @
8e350548
...
...
@@ -54,8 +54,6 @@ int PeriodicNamingService::RunNamingService(
return
-
1
;
}
}
CHECK
(
false
);
return
-
1
;
}
}
// namespace brpc
src/brpc/server.cpp
View file @
8e350548
...
...
@@ -1029,9 +1029,6 @@ int Server::Start(const char* ip_str, PortRange port_range,
}
int
Server
::
Stop
(
int
timeout_ms
)
{
if
(
_status
!=
RUNNING
)
{
return
-
1
;
}
if
(
_status
!=
RUNNING
)
{
return
-
1
;
}
...
...
@@ -1375,7 +1372,10 @@ void Server::RemoveMethodsOf(google::protobuf::Service* service) {
full_name_wo_ns
.
append
(
md
->
name
());
_method_map
.
erase
(
full_name_wo_ns
);
}
if
(
mp
==
NULL
)
{
LOG
(
ERROR
)
<<
"Fail to find method="
<<
md
->
full_name
();
continue
;
}
if
(
mp
->
http_url
)
{
butil
::
StringSplitter
at_sp
(
mp
->
http_url
->
c_str
(),
'@'
);
for
(;
at_sp
;
++
at_sp
)
{
...
...
@@ -1411,7 +1411,7 @@ void Server::RemoveMethodsOf(google::protobuf::Service* service) {
delete
mp
->
http_url
;
}
if
(
mp
!=
NULL
&&
mp
->
own_method_status
)
{
if
(
mp
->
own_method_status
)
{
delete
mp
->
status
;
}
_method_map
.
erase
(
md
->
full_name
());
...
...
src/brpc/ts.cpp
View file @
8e350548
...
...
@@ -251,7 +251,6 @@ void TsPacket::Reset() {
_transport_scrambling_control
=
TS_SCRAMBLED_DISABLED
;
_adaptation_field_control
=
TS_AF_RESERVED
;
_continuity_counter
=
0
;
_adaptation_field
=
NULL
;
_payload
=
NULL
;
_modified
=
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