This is an automated email from the ASF dual-hosted git repository. jiashunzhu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push: new 0deb4f8 fix typo of 'RPC' new bbf0c5f Merge pull request #1221 from lsjbd/fix_typo 0deb4f8 is described below commit 0deb4f899e37e0b0cbd9d157cd367cf2ada6bb5a Author: lushaojie <lushao...@bytedance.com> AuthorDate: Thu Aug 27 18:03:20 2020 +0800 fix typo of 'RPC' --- src/brpc/grpc.cpp | 4 ++-- src/brpc/grpc.h | 2 +- src/bthread/unstable.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/brpc/grpc.cpp b/src/brpc/grpc.cpp index 4e4b822..0da3b89 100644 --- a/src/brpc/grpc.cpp +++ b/src/brpc/grpc.cpp @@ -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"; @@ -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: diff --git a/src/brpc/grpc.h b/src/brpc/grpc.h index 9c4a733..7bddabc 100644 --- a/src/brpc/grpc.h +++ b/src/brpc/grpc.h @@ -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. diff --git a/src/bthread/unstable.h b/src/bthread/unstable.h index 361acef..ee0fa63 100644 --- a/src/bthread/unstable.h +++ b/src/bthread/unstable.h @@ -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] --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org