Fix a number of spelling errors.

pull/16425/head
Chris Lamb 7 years ago
parent 35cde99212
commit fba18d8551
  1. 8
      doc/core/grpc-error.md
  2. 2
      src/core/ext/filters/client_channel/client_channel.cc
  3. 2
      src/core/ext/filters/http/client_authority_filter.cc
  4. 2
      src/core/lib/iomgr/socket_mutator.cc
  5. 2
      src/core/lib/iomgr/socket_mutator.h
  6. 2
      src/core/lib/security/credentials/oauth2/oauth2_credentials.cc
  7. 2
      src/core/lib/surface/call.cc
  8. 2
      src/core/tsi/ssl_transport_security.cc
  9. 2
      src/csharp/Grpc.Core/Internal/AsyncCall.cs
  10. 2
      src/csharp/Grpc.Core/Internal/BatchContextSafeHandle.cs
  11. 4
      src/csharp/Grpc.Core/Internal/GrpcThreadPool.cs
  12. 2
      src/csharp/Grpc.Core/Internal/RequestCallContextSafeHandle.cs
  13. 2
      src/python/grpcio_tests/tests/stress/test_runner.py
  14. 6
      src/ruby/pb/test/client.rb
  15. 6
      src/ruby/spec/generic/client_stub_spec.rb
  16. 4
      test/core/security/credentials_test.cc

@ -56,7 +56,7 @@ For example, in the following code block, error1 and error2 are owned by the
current function.
```C
grpc_error* error1 = GRPC_ERROR_CREATE_FROM_STATIC_STRING("Some error occured");
grpc_error* error1 = GRPC_ERROR_CREATE_FROM_STATIC_STRING("Some error occurred");
grpc_error* error2 = some_operation_that_might_fail(...);
```
@ -87,7 +87,7 @@ callbacks with `GRPC_CLOSURE_RUN` and `GRPC_CLOSURE_SCHED`. These functions are
not callbacks, so they will take ownership of the error passed to them.
```C
grpc_error* error = GRPC_ERROR_CREATE_FROM_STATIC_STRING("Some error occured");
grpc_error* error = GRPC_ERROR_CREATE_FROM_STATIC_STRING("Some error occurred");
GRPC_CLOSURE_RUN(exec_ctx, cb, error);
// current function no longer has ownership of the error
```
@ -96,7 +96,7 @@ If you schedule or run a closure, but still need ownership of the error, then
you must explicitly take a reference.
```C
grpc_error* error = GRPC_ERROR_CREATE_FROM_STATIC_STRING("Some error occured");
grpc_error* error = GRPC_ERROR_CREATE_FROM_STATIC_STRING("Some error occurred");
GRPC_CLOSURE_RUN(exec_ctx, cb, GRPC_ERROR_REF(error));
// do some other things with the error
GRPC_ERROR_UNREF(error);
@ -128,7 +128,7 @@ void on_some_action(grpc_exec_ctx *exec_ctx, void *arg, grpc_error *error) {
Take the following example:
```C
grpc_error* error = GRPC_ERROR_CREATE_FROM_STATIC_STRING("Some error occured");
grpc_error* error = GRPC_ERROR_CREATE_FROM_STATIC_STRING("Some error occurred");
// do some things
some_function(error);
// can't use error anymore! might be gone.

@ -3101,7 +3101,7 @@ static void cc_start_transport_stream_op_batch(
// For all other batches, release the call combiner.
if (grpc_client_channel_trace.enabled()) {
gpr_log(GPR_INFO,
"chand=%p calld=%p: saved batch, yeilding call combiner", chand,
"chand=%p calld=%p: saved batch, yielding call combiner", chand,
calld);
}
GRPC_CALL_COMBINER_STOP(calld->call_combiner,

@ -94,7 +94,7 @@ grpc_error* init_channel_elem(grpc_channel_element* elem,
if (default_authority_arg == nullptr) {
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
"GRPC_ARG_DEFAULT_AUTHORITY channel arg. not found. Note that direct "
"channels must explicity specify a value for this argument.");
"channels must explicitly specify a value for this argument.");
}
const char* default_authority_str =
grpc_channel_arg_get_string(default_authority_arg);

@ -57,7 +57,7 @@ int grpc_socket_mutator_compare(grpc_socket_mutator* a,
void grpc_socket_mutator_unref(grpc_socket_mutator* mutator) {
if (gpr_unref(&mutator->refcount)) {
mutator->vtable->destory(mutator);
mutator->vtable->destroy(mutator);
}
}

@ -33,7 +33,7 @@ typedef struct {
/** Compare socket mutator \a a and \a b */
int (*compare)(grpc_socket_mutator* a, grpc_socket_mutator* b);
/** Destroys the socket mutator instance */
void (*destory)(grpc_socket_mutator* mutator);
void (*destroy)(grpc_socket_mutator* mutator);
} grpc_socket_mutator_vtable;
/** The Socket Mutator interface allows changes on socket options */

@ -235,7 +235,7 @@ static void on_oauth2_token_fetcher_http_response(void* user_data,
access_token_md);
} else {
error = GRPC_ERROR_CREATE_REFERENCING_FROM_STATIC_STRING(
"Error occured when fetching oauth2 token.", &error, 1);
"Error occurred when fetching oauth2 token.", &error, 1);
}
GRPC_CLOSURE_SCHED(pending_request->on_request_metadata, error);
grpc_polling_entity_del_from_pollset_set(

@ -1951,7 +1951,7 @@ done:
return error;
done_with_error:
/* reverse any mutations that occured */
/* reverse any mutations that occurred */
if (stream_op->send_initial_metadata) {
call->sent_initial_metadata = false;
grpc_metadata_batch_clear(&call->metadata_batch[0][0]);

@ -216,7 +216,7 @@ static void ssl_log_where_info(const SSL* ssl, int where, int flag,
/* Used for debugging. TODO(jboeuf): Remove when code is mature enough. */
static void ssl_info_callback(const SSL* ssl, int where, int ret) {
if (ret == 0) {
gpr_log(GPR_ERROR, "ssl_info_callback: error occured.\n");
gpr_log(GPR_ERROR, "ssl_info_callback: error occurred.\n");
return;
}

@ -108,7 +108,7 @@ namespace Grpc.Core.Internal
}
catch (Exception e)
{
Logger.Error(e, "Exception occured while invoking completion delegate.");
Logger.Error(e, "Exception occurred while invoking completion delegate.");
}
}
finally

@ -144,7 +144,7 @@ namespace Grpc.Core.Internal
}
catch (Exception e)
{
Logger.Error(e, "Exception occured while invoking batch completion delegate.");
Logger.Error(e, "Exception occurred while invoking batch completion delegate.");
}
finally
{

@ -189,7 +189,7 @@ namespace Grpc.Core.Internal
}
catch (Exception e)
{
Logger.Error(e, "Exception occured while extracting event from completion registry.");
Logger.Error(e, "Exception occurred while extracting event from completion registry.");
}
}
}
@ -233,7 +233,7 @@ namespace Grpc.Core.Internal
}
catch (Exception e)
{
Logger.Error(e, "Exception occured while invoking completion delegate");
Logger.Error(e, "Exception occurred while invoking completion delegate");
}
finally
{

@ -112,7 +112,7 @@ namespace Grpc.Core.Internal
}
catch (Exception e)
{
Logger.Error(e, "Exception occured while invoking request call completion delegate.");
Logger.Error(e, "Exception occurred while invoking request call completion delegate.");
}
finally
{

@ -53,5 +53,5 @@ class TestRunner(threading.Thread):
except Exception as e: # pylint: disable=broad-except
traceback.print_exc()
self._exception_queue.put(
Exception("An exception occured during test {}"
Exception("An exception occurred during test {}"
.format(test_case), e))

@ -681,13 +681,13 @@ class NamedTests
# Send probing message for compressed request on the server, to see
# if it's implemented.
def send_probe_for_compressed_request_support(&send_probe)
bad_status_occured = false
bad_status_occurred = false
begin
send_probe.call
rescue GRPC::BadStatus => e
if e.code == GRPC::Core::StatusCodes::INVALID_ARGUMENT
bad_status_occured = true
bad_status_occurred = true
else
fail AssertionError, "Bad status received but code is #{e.code}"
end
@ -696,7 +696,7 @@ class NamedTests
end
assert('CompressedRequest probe failed') do
bad_status_occured
bad_status_occurred
end
end

@ -265,14 +265,14 @@ describe 'ClientStub' do # rubocop:disable Metrics/BlockLength
end
creds = GRPC::Core::CallCredentials.new(failing_auth)
unavailable_error_occured = false
unavailable_error_occurred = false
begin
get_response(stub, credentials: creds)
rescue GRPC::Unavailable => e
unavailable_error_occured = true
unavailable_error_occurred = true
expect(e.details.include?(error_message)).to be true
end
expect(unavailable_error_occured).to eq(true)
expect(unavailable_error_occurred).to eq(true)
@server.shutdown_and_notify(Time.now + 3)
th.join

@ -610,7 +610,7 @@ static void test_compute_engine_creds_failure(void) {
grpc_core::ExecCtx exec_ctx;
request_metadata_state* state = make_request_metadata_state(
GRPC_ERROR_CREATE_FROM_STATIC_STRING(
"Error occured when fetching oauth2 token."),
"Error occurred when fetching oauth2 token."),
nullptr, 0);
grpc_auth_metadata_context auth_md_ctx = {test_service_url, test_method,
nullptr, nullptr};
@ -699,7 +699,7 @@ static void test_refresh_token_creds_failure(void) {
grpc_core::ExecCtx exec_ctx;
request_metadata_state* state = make_request_metadata_state(
GRPC_ERROR_CREATE_FROM_STATIC_STRING(
"Error occured when fetching oauth2 token."),
"Error occurred when fetching oauth2 token."),
nullptr, 0);
grpc_auth_metadata_context auth_md_ctx = {test_service_url, test_method,
nullptr, nullptr};

Loading…
Cancel
Save