Merge pull request #20433 from tanjunchen/clean-doc

fix some spelling mistakes in document
pull/20495/head
Juanli Shen 5 years ago committed by GitHub
commit a85b78baa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      include/grpc/impl/codegen/port_platform.h
  2. 4
      src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc
  3. 5
      src/core/tsi/ssl_transport_security.cc
  4. 4
      src/core/tsi/ssl_transport_security.h
  5. 2
      src/cpp/thread_manager/thread_manager.h
  6. 2
      src/csharp/Grpc.Core/Internal/CallSafeHandle.cs
  7. 2
      src/csharp/Grpc.Core/Internal/DefaultObjectPool.cs
  8. 2
      src/objective-c/RxLibrary/GRXWriteable.h
  9. 2
      src/php/composer.json
  10. 2
      src/php/lib/Grpc/BidiStreamingCall.php
  11. 2
      src/python/grpcio/grpc/_cython/_cygrpc/aio/call.pyx.pxi
  12. 2
      src/python/grpcio/grpc/_cython/_cygrpc/grpc_string.pyx.pxi
  13. 2
      src/python/grpcio_tests/tests/qps/benchmark_client.py
  14. 2
      src/ruby/end2end/channel_closing_driver.rb
  15. 2
      src/ruby/ext/grpc/rb_call.c
  16. 2
      src/ruby/lib/grpc/generic/bidi_call.rb
  17. 2
      src/ruby/lib/grpc/generic/rpc_server.rb
  18. 4
      src/ruby/spec/google_rpc_status_utils_spec.rb
  19. 2
      templates/Makefile.template
  20. 2
      templates/src/php/composer.json.template
  21. 2
      test/core/memory_usage/client.cc

@ -217,7 +217,7 @@
#define GPR_CPU_IPHONE 1
#define GPR_PTHREAD_TLS 1
#define GRPC_CFSTREAM 1
/* the c-ares resolver isnt safe to enable on iOS */
/* the c-ares resolver isn't safe to enable on iOS */
#define GRPC_ARES 0
#else /* TARGET_OS_IPHONE */
#define GPR_PLATFORM_STRING "osx"

@ -399,8 +399,8 @@ class GrpcPolledFdWindows {
ares_ssize_t SendVTCP(WSAErrorContext* wsa_error_ctx, const struct iovec* iov,
int iov_count) {
// The "sendv" handler on TCP sockets buffers up write
// requests and returns an artifical WSAEWOULDBLOCK. Writing that buffer out
// in the background, and making further send progress in general, will
// requests and returns an artificial WSAEWOULDBLOCK. Writing that buffer
// out in the background, and making further send progress in general, will
// happen as long as c-ares continues to show interest in writeability on
// this fd.
GRPC_CARES_TRACE_LOG("fd:|%s| SendVTCP called tcp_write_state_:%d",

@ -550,7 +550,8 @@ static tsi_result ssl_ctx_use_certificate_chain(SSL_CTX* context,
break;
}
/* We don't need to free certificate_authority as its ownership has been
transfered to the context. That is not the case for certificate though.
transferred to the context. That is not the case for certificate
though.
*/
}
} while (0);
@ -1618,7 +1619,7 @@ static int server_handshaker_factory_new_session_callback(
return 0;
}
factory->session_cache->Put(server_name, tsi::SslSessionPtr(session));
// Return 1 to indicate transfered ownership over the given session.
// Return 1 to indicate transferred ownership over the given session.
return 1;
}

@ -260,8 +260,8 @@ struct tsi_ssl_server_handshaker_options {
specified. If this parameter is 0, the other alpn parameters must be
NULL. */
uint16_t num_alpn_protocols;
/* session_ticket_key is optional key for encrypting session keys. If paramter
is not specified it must be NULL. */
/* session_ticket_key is optional key for encrypting session keys. If
parameter is not specified it must be NULL. */
const char* session_ticket_key;
/* session_ticket_key_size is a size of session ticket encryption key. */
size_t session_ticket_key_size;

@ -150,7 +150,7 @@ class ThreadManager {
//
// Note: The user of this ThreadManager object must create grpc_resource_quota
// object (that contains the actual max thread quota) and a grpc_resource_user
// object through which quota is requested whenver new threads need to be
// object through which quota is requested whenever new threads need to be
// created
grpc_resource_user* resource_user_;

@ -33,7 +33,7 @@ namespace Grpc.Core.Internal
public static readonly CallSafeHandle NullInstance = new CallSafeHandle();
static readonly NativeMethods Native = NativeMethods.Get();
// Completion handlers are pre-allocated to avoid unneccessary delegate allocations.
// Completion handlers are pre-allocated to avoid unnecessary delegate allocations.
// The "state" field is used to store the actual callback to invoke.
static readonly BatchCompletionDelegate CompletionHandler_IUnaryResponseClientCallback =
(success, context, state) => ((IUnaryResponseClientCallback)state).OnUnaryResponseClient(success, context.GetReceivedStatusOnClient(), context.GetReceivedMessageReader(), context.GetReceivedInitialMetadata());

@ -161,7 +161,7 @@ namespace Grpc.Core.Internal
}
}
// If the shared pool could not accomodate all returnLimit items,
// If the shared pool could not accommodate all returnLimit items,
// next time we try to return we will just dispose the item
// instead of trying to return them to the shared queue.
// This is to guarantee we won't be accessing the shared queue too often.

@ -28,7 +28,7 @@
- (void)writeValue:(id)value;
/**
* Signal that the sequence is completed, or that an error ocurred. After this
* Signal that the sequence is completed, or that an error occurred. After this
* message is sent to the instance, neither it nor writeValue: may be
* called again.
*/

@ -1,6 +1,6 @@
{
"name": "grpc/grpc-dev",
"description": "gRPC library for PHP - for Developement use only",
"description": "gRPC library for PHP - for Development use only",
"license": "Apache-2.0",
"version": "1.25.0",
"require": {

@ -20,7 +20,7 @@
namespace Grpc;
/**
* Represents an active call that allows for sending and recieving messages
* Represents an active call that allows for sending and receiving messages
* in streams in any order.
*/
class BidiStreamingCall extends AbstractCall

@ -55,7 +55,7 @@ cdef class _AioCall:
assert call._waiter_call
if succeed == 0:
call._waiter_call.set_exception(Exception("Some error ocurred"))
call._waiter_call.set_exception(Exception("Some error occurred"))
else:
call._waiter_call.set_result(None)

@ -16,7 +16,7 @@ import logging
_LOGGER = logging.getLogger(__name__)
# This function will ascii encode unicode string inputs if neccesary.
# This function will ascii encode unicode string inputs if necessary.
# In Python3, unicode strings are the default str type.
cdef bytes str_to_bytes(object s):
if s is None or isinstance(s, bytes):

@ -102,7 +102,7 @@ class UnarySyncBenchmarkClient(BenchmarkClient):
max_workers=config.outstanding_rpcs_per_channel)
def send_request(self):
# Send requests in seperate threads to support multiple outstanding rpcs
# Send requests in separate threads to support multiple outstanding rpcs
# (See src/proto/grpc/testing/control.proto)
self._pool.submit(self._dispatch_request)

@ -15,7 +15,7 @@
# limitations under the License.
# make sure that the client doesn't hang when channel is closed
# explictly while it's used
# explicitly while it's used
require_relative './end2end_common'

@ -170,7 +170,7 @@ static VALUE grpc_rb_call_cancel(VALUE self) {
/* TODO: expose this as part of the surface API if needed.
* This is meant for internal usage by the "write thread" of grpc-ruby
* client-side bidi calls. It provides a way for the background write-thread
* to propogate failures to the main read-thread and give the user an error
* to propagate failures to the main read-thread and give the user an error
* message. */
static VALUE grpc_rb_call_cancel_with_status(VALUE self, VALUE status_code,
VALUE details) {

@ -17,7 +17,7 @@ require_relative '../grpc'
# GRPC contains the General RPC module.
module GRPC
# The BiDiCall class orchestrates exection of a BiDi stream on a client or
# The BiDiCall class orchestrates execution of a BiDi stream on a client or
# server.
class BidiCall
include Core::CallOps

@ -241,7 +241,7 @@ module GRPC
# server's current call loop is it's last.
def stop
# if called via run_till_terminated_or_interrupted,
# signal stop_server_thread and dont do anything
# signal stop_server_thread and don't do anything
if @stop_server.nil? == false && @stop_server == false
@stop_server = true
@stop_server_cv.broadcast

@ -67,7 +67,7 @@ describe 'conversion from a status struct to a google protobuf status' do
expect(rpc_status).to eq(proto)
end
it 'can succesfully convert a status struct into a google protobuf status '\
it 'can successfully convert a status struct into a google protobuf status '\
'when there are no rpcstatus details' do
proto = Google::Rpc::Status.new(code: 1, message: 'matching message')
encoded_proto = Google::Rpc::Status.encode(proto)
@ -79,7 +79,7 @@ describe 'conversion from a status struct to a google protobuf status' do
expect(out.details).to eq([])
end
it 'can succesfully convert a status struct into a google protobuf '\
it 'can successfully convert a status struct into a google protobuf '\
'status when there are multiple rpcstatus details' do
simple_request_any = Google::Protobuf::Any.new
simple_request = Grpc::Testing::SimpleRequest.new(

@ -35,7 +35,7 @@
sources_that_need_openssl = set()
sources_that_don_t_need_openssl = set()
# warnings we'd like, but that dont exist in all compilers
# warnings we'd like, but that don't exist in all compilers
PREFERRED_WARNINGS=['extra-semi']
CHECK_WARNINGS=PREFERRED_WARNINGS + ['no-shift-negative-value', 'no-unused-but-set-variable', 'no-maybe-uninitialized', 'no-unknown-warning-option']

@ -2,7 +2,7 @@
--- |
{
"name": "grpc/grpc-dev",
"description": "gRPC library for PHP - for Developement use only",
"description": "gRPC library for PHP - for Development use only",
"license": "Apache-2.0",
"version": "${settings.php_version.php_composer()}",
"require": {

@ -49,7 +49,7 @@ typedef struct {
grpc_metadata_array trailing_metadata_recv;
} fling_call;
// Statically allocate call data structs. Enough to accomodate 10000 ping-pong
// Statically allocate call data structs. Enough to accommodate 10000 ping-pong
// calls and 1 extra for the snapshot calls.
static fling_call calls[10001];

Loading…
Cancel
Save