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
0deb4f89
Commit
0deb4f89
authored
Aug 27, 2020
by
lushaojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo of 'RPC'
parent
b80ea897
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
grpc.cpp
src/brpc/grpc.cpp
+2
-2
grpc.h
src/brpc/grpc.h
+1
-1
unstable.h
src/bthread/unstable.h
+1
-1
No files found.
src/brpc/grpc.cpp
View file @
0deb4f89
...
...
@@ -38,7 +38,7 @@ const char* GrpcStatusToString(GrpcStatus s) {
case
GRPC_PERMISSIONDENIED
:
return
"GRPC_PERMISSIONDENIED"
;
case
GRPC_RESOURCEEXHAUSTED
:
return
"GRPC_RESOURCEEXHAUSTED"
;
case
GRPC_FAILEDPRECONDITION
:
return
"GRPC_FAILEDPRECONDITION"
;
case
G
PRC_ABORTED
:
return
"GPR
C_ABORTED"
;
case
G
RPC_ABORTED
:
return
"GRP
C_ABORTED"
;
case
GRPC_OUTOFRANGE
:
return
"GRPC_OUTOFRANGE"
;
case
GRPC_UNIMPLEMENTED
:
return
"GRPC_UNIMPLEMENTED"
;
case
GRPC_INTERNAL
:
return
"GRPC_INTERNAL"
;
...
...
@@ -100,7 +100,7 @@ int GrpcStatusToErrorCode(GrpcStatus grpc_status) {
case
GRPC_RESOURCEEXHAUSTED
:
return
ELIMIT
;
case
GRPC_FAILEDPRECONDITION
:
case
G
PR
C_ABORTED
:
case
G
RP
C_ABORTED
:
case
GRPC_OUTOFRANGE
:
return
EINTERNAL
;
case
GRPC_UNIMPLEMENTED
:
...
...
src/brpc/grpc.h
View file @
0deb4f89
...
...
@@ -98,7 +98,7 @@ enum GrpcStatus {
//
// See litmus test above for deciding between FAILEDPRECONDITION,
// Aborted, and Unavailable.
G
PR
C_ABORTED
,
G
RP
C_ABORTED
,
// OUTOFRANGE means operation was attempted past the valid range.
// E.g., seeking or reading past end of file.
...
...
src/bthread/unstable.h
View file @
0deb4f89
...
...
@@ -97,7 +97,7 @@ extern int bthread_key_create2(bthread_key_t* key,
void
(
*
destructor
)(
void
*
data
,
const
void
*
dtor_arg
),
const
void
*
dtor_arg
);
// CAUTION: functions marked with [
PR
C INTERNAL] are NOT supposed to be called
// CAUTION: functions marked with [
RP
C INTERNAL] are NOT supposed to be called
// by RPC users.
// [RPC INTERNAL]
...
...
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