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
4da91251
Commit
4da91251
authored
Aug 20, 2018
by
TousakaRin
Committed by
TousakaRin
Sep 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep the SharedPart' is defined in the cpp file.
parent
ffca94c0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
circuit_breaker.h
src/brpc/circuit_breaker.h
+0
-1
controller.cpp
src/brpc/controller.cpp
+2
-2
socket.h
src/brpc/socket.h
+0
-2
No files found.
src/brpc/circuit_breaker.h
View file @
4da91251
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
#ifndef BRPC_CIRCUIT_BREAKER_H
#ifndef BRPC_CIRCUIT_BREAKER_H
#define BRPC_CIRCUIT_BREAKER_H
#define BRPC_CIRCUIT_BREAKER_H
#include "butil/containers/doubly_buffered_data.h"
#include "butil/atomicops.h"
#include "butil/atomicops.h"
namespace
brpc
{
namespace
brpc
{
...
...
src/brpc/controller.cpp
View file @
4da91251
...
@@ -778,8 +778,8 @@ void Controller::Call::OnComplete(Controller* c, int error_code/*note*/,
...
@@ -778,8 +778,8 @@ void Controller::Call::OnComplete(Controller* c, int error_code/*note*/,
if
(
enable_circuit_breaker
)
{
if
(
enable_circuit_breaker
)
{
SocketUniquePtr
sock
;
SocketUniquePtr
sock
;
if
(
Socket
::
Address
(
peer_id
,
&
sock
)
==
0
)
{
if
(
Socket
::
Address
(
peer_id
,
&
sock
)
==
0
)
{
// sock->GetSharedPart()->circuit_breaker.OnCallEnd(
sock
->
FeedbackCircuitBreaker
(
error_code
,
// error_code,
butil::gettimeofday_us() - begin_time_us);
butil
::
gettimeofday_us
()
-
begin_time_us
);
}
}
}
}
}
}
...
...
src/brpc/socket.h
View file @
4da91251
...
@@ -762,8 +762,6 @@ private:
...
@@ -762,8 +762,6 @@ private:
butil
::
Mutex
_stream_mutex
;
butil
::
Mutex
_stream_mutex
;
std
::
set
<
StreamId
>
*
_stream_set
;
std
::
set
<
StreamId
>
*
_stream_set
;
CircuitBreaker
_circuit_breaker
;
};
};
}
// namespace brpc
}
// namespace brpc
...
...
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