Commit 0deb4f89 authored by lushaojie's avatar lushaojie

fix typo of 'RPC'

parent b80ea897
......@@ -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:
......
......@@ -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.
......
......@@ -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]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment