Removed grpc_error_string usage (#28819)

pull/28821/head
Esun Kim 3 years ago committed by GitHub
parent 2532cf5321
commit 8adc21f78d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/channel/promise_based_filter.h
  2. 2
      src/core/lib/iomgr/error.cc
  3. 2
      src/core/lib/iomgr/error.h

@ -319,7 +319,7 @@ class CallData<ChannelFilter, true> : public BaseCallData {
metadata->Set(GrpcMessageMetadata(),
Slice::FromCopiedString(status_details));
metadata->GetOrCreatePointer(GrpcStatusContext())
->emplace_back(grpc_error_string(error));
->emplace_back(grpc_error_std_string(error));
}
// Wakeup and poll the promise if appropriate.

@ -445,6 +445,8 @@ static void internal_set_time(grpc_error_handle* err, grpc_error_times which,
memcpy((*err)->arena + slot, &value, sizeof(value));
}
const char* grpc_error_string(grpc_error_handle err);
static void internal_add_error(grpc_error_handle* err,
grpc_error_handle new_err) {
grpc_linked_error new_last = {new_err, UINT8_MAX};

@ -145,8 +145,6 @@ typedef enum {
GRPC_ERROR_TIME_MAX,
} grpc_error_times;
// DEPRECATED: Use grpc_error_std_string instead
const char* grpc_error_string(grpc_error_handle error);
std::string grpc_error_std_string(grpc_error_handle error);
// debug only toggles that allow for a sanity to check that ensures we will

Loading…
Cancel
Save