Merge pull request #765 from tbetbetbe/grpc_rb_rename_c_creds_api

Reflect a C-api name change
pull/771/head
Michael Lumish 10 years ago
commit a8d8a96877
  1. 2
      src/ruby/ext/grpc/rb_credentials.c

@ -125,7 +125,7 @@ static VALUE grpc_rb_credentials_init_copy(VALUE copy, VALUE orig) {
Creates the default credential instances. */ Creates the default credential instances. */
static VALUE grpc_rb_default_credentials_create(VALUE cls) { static VALUE grpc_rb_default_credentials_create(VALUE cls) {
grpc_rb_credentials *wrapper = ALLOC(grpc_rb_credentials); grpc_rb_credentials *wrapper = ALLOC(grpc_rb_credentials);
wrapper->wrapped = grpc_default_credentials_create(); wrapper->wrapped = grpc_google_default_credentials_create();
if (wrapper->wrapped == NULL) { if (wrapper->wrapped == NULL) {
rb_raise(rb_eRuntimeError, rb_raise(rb_eRuntimeError,
"could not create default credentials, not sure why"); "could not create default credentials, not sure why");

Loading…
Cancel
Save