Skip to content

Commit

Permalink
fix typo of 'RPC'
Browse files Browse the repository at this point in the history
  • Loading branch information
lsjbd committed Aug 27, 2020
1 parent b80ea89 commit 0deb4f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/brpc/grpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 GPRC_ABORTED: return "GPRC_ABORTED";
case GRPC_ABORTED: return "GRPC_ABORTED";
case GRPC_OUTOFRANGE: return "GRPC_OUTOFRANGE";
case GRPC_UNIMPLEMENTED: return "GRPC_UNIMPLEMENTED";
case GRPC_INTERNAL: return "GRPC_INTERNAL";
Expand Down Expand Up @@ -100,7 +100,7 @@ int GrpcStatusToErrorCode(GrpcStatus grpc_status) {
case GRPC_RESOURCEEXHAUSTED:
return ELIMIT;
case GRPC_FAILEDPRECONDITION:
case GPRC_ABORTED:
case GRPC_ABORTED:
case GRPC_OUTOFRANGE:
return EINTERNAL;
case GRPC_UNIMPLEMENTED:
Expand Down
2 changes: 1 addition & 1 deletion src/brpc/grpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ enum GrpcStatus {
//
// See litmus test above for deciding between FAILEDPRECONDITION,
// Aborted, and Unavailable.
GPRC_ABORTED,
GRPC_ABORTED,

// OUTOFRANGE means operation was attempted past the valid range.
// E.g., seeking or reading past end of file.
Expand Down
2 changes: 1 addition & 1 deletion src/bthread/unstable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 [PRC INTERNAL] are NOT supposed to be called
// CAUTION: functions marked with [RPC INTERNAL] are NOT supposed to be called
// by RPC users.

// [RPC INTERNAL]
Expand Down

0 comments on commit 0deb4f8

Please sign in to comment.