fix typo in document

pull/20520/head
tanjunchen 5 years ago
parent 373fc2413a
commit ccc5481ff0
  1. 2
      doc/keepalive.md
  2. 2
      include/grpc/impl/codegen/sync_generic.h
  3. 2
      src/core/ext/filters/client_channel/subchannel.h
  4. 2
      src/core/lib/gprpp/memory.h
  5. 2
      src/core/lib/transport/connectivity_state.h
  6. 10
      src/csharp/Grpc.Core/Calls.cs
  7. 2
      src/csharp/Grpc.IntegrationTesting/Messages.cs
  8. 2
      src/csharp/Grpc.IntegrationTesting/Metrics.cs
  9. 2
      src/objective-c/RxLibrary/GRXWriter.h
  10. 2
      src/objective-c/tests/TestBase.h
  11. 2
      src/php/ext/grpc/php_grpc.c
  12. 2
      src/php/tests/qps/generated_code/Grpc/Testing/GaugeResponse.php
  13. 2
      src/proto/grpc/testing/messages.proto
  14. 2
      src/proto/grpc/testing/metrics.proto

@ -1,4 +1,4 @@
# Keepalive User Guide for gRPC Core (and dependants) # Keepalive User Guide for gRPC Core (and dependents)
The keepalive ping is a way to check if a channel is currently working by sending HTTP2 pings over the transport. It is sent periodically, and if the ping is not acknowledged by the peer within a certain timeout period, the transport is disconnected. The keepalive ping is a way to check if a channel is currently working by sending HTTP2 pings over the transport. It is sent periodically, and if the ping is not acknowledged by the peer within a certain timeout period, the transport is disconnected.

@ -18,7 +18,7 @@
#ifndef GRPC_IMPL_CODEGEN_SYNC_GENERIC_H #ifndef GRPC_IMPL_CODEGEN_SYNC_GENERIC_H
#define GRPC_IMPL_CODEGEN_SYNC_GENERIC_H #define GRPC_IMPL_CODEGEN_SYNC_GENERIC_H
/* Generic type defintions for gpr_sync. */ /* Generic type definitions for gpr_sync. */
#include <grpc/impl/codegen/port_platform.h> #include <grpc/impl/codegen/port_platform.h>

@ -292,7 +292,7 @@ class Subchannel {
bool empty() const { return watchers_.empty(); } bool empty() const { return watchers_.empty(); }
private: private:
// TODO(roth): Once we can use C++-14 heterogenous lookups, this can // TODO(roth): Once we can use C++-14 heterogeneous lookups, this can
// be a set instead of a map. // be a set instead of a map.
Map<ConnectivityStateWatcherInterface*, Map<ConnectivityStateWatcherInterface*,
OrphanablePtr<ConnectivityStateWatcherInterface>> OrphanablePtr<ConnectivityStateWatcherInterface>>

@ -37,7 +37,7 @@ inline T* New(Args&&... args) {
return new (p) T(std::forward<Args>(args)...); return new (p) T(std::forward<Args>(args)...);
} }
// Gets the base pointer of any class, in case of multiple inheritence. // Gets the base pointer of any class, in case of multiple inheritance.
// Used by Delete and friends. // Used by Delete and friends.
template <typename T, bool isPolymorphic> template <typename T, bool isPolymorphic>
struct BasePointerGetter { struct BasePointerGetter {

@ -116,7 +116,7 @@ class ConnectivityStateTracker {
private: private:
const char* name_; const char* name_;
Atomic<grpc_connectivity_state> state_; Atomic<grpc_connectivity_state> state_;
// TODO(roth): Once we can use C++-14 heterogenous lookups, this can // TODO(roth): Once we can use C++-14 heterogeneous lookups, this can
// be a set instead of a map. // be a set instead of a map.
Map<ConnectivityStateWatcherInterface*, Map<ConnectivityStateWatcherInterface*,
OrphanablePtr<ConnectivityStateWatcherInterface>> OrphanablePtr<ConnectivityStateWatcherInterface>>

@ -33,7 +33,7 @@ namespace Grpc.Core
/// Invokes a simple remote call in a blocking fashion. /// Invokes a simple remote call in a blocking fashion.
/// </summary> /// </summary>
/// <returns>The response.</returns> /// <returns>The response.</returns>
/// <param name="call">The call defintion.</param> /// <param name="call">The call definition.</param>
/// <param name="req">Request message.</param> /// <param name="req">Request message.</param>
/// <typeparam name="TRequest">Type of request message.</typeparam> /// <typeparam name="TRequest">Type of request message.</typeparam>
/// <typeparam name="TResponse">The of response message.</typeparam> /// <typeparam name="TResponse">The of response message.</typeparam>
@ -49,7 +49,7 @@ namespace Grpc.Core
/// Invokes a simple remote call asynchronously. /// Invokes a simple remote call asynchronously.
/// </summary> /// </summary>
/// <returns>An awaitable call object providing access to the response.</returns> /// <returns>An awaitable call object providing access to the response.</returns>
/// <param name="call">The call defintion.</param> /// <param name="call">The call definition.</param>
/// <param name="req">Request message.</param> /// <param name="req">Request message.</param>
/// <typeparam name="TRequest">Type of request message.</typeparam> /// <typeparam name="TRequest">Type of request message.</typeparam>
/// <typeparam name="TResponse">The of response message.</typeparam> /// <typeparam name="TResponse">The of response message.</typeparam>
@ -67,7 +67,7 @@ namespace Grpc.Core
/// In server streaming scenario, client sends on request and server responds with a stream of responses. /// In server streaming scenario, client sends on request and server responds with a stream of responses.
/// </summary> /// </summary>
/// <returns>A call object providing access to the asynchronous response stream.</returns> /// <returns>A call object providing access to the asynchronous response stream.</returns>
/// <param name="call">The call defintion.</param> /// <param name="call">The call definition.</param>
/// <param name="req">Request message.</param> /// <param name="req">Request message.</param>
/// <typeparam name="TRequest">Type of request message.</typeparam> /// <typeparam name="TRequest">Type of request message.</typeparam>
/// <typeparam name="TResponse">The of response messages.</typeparam> /// <typeparam name="TResponse">The of response messages.</typeparam>
@ -85,7 +85,7 @@ namespace Grpc.Core
/// Invokes a client streaming call asynchronously. /// Invokes a client streaming call asynchronously.
/// In client streaming scenario, client sends a stream of requests and server responds with a single response. /// In client streaming scenario, client sends a stream of requests and server responds with a single response.
/// </summary> /// </summary>
/// <param name="call">The call defintion.</param> /// <param name="call">The call definition.</param>
/// <returns>An awaitable call object providing access to the response.</returns> /// <returns>An awaitable call object providing access to the response.</returns>
/// <typeparam name="TRequest">Type of request messages.</typeparam> /// <typeparam name="TRequest">Type of request messages.</typeparam>
/// <typeparam name="TResponse">The of response message.</typeparam> /// <typeparam name="TResponse">The of response message.</typeparam>
@ -107,7 +107,7 @@ namespace Grpc.Core
/// <returns>A call object providing access to the asynchronous request and response streams.</returns> /// <returns>A call object providing access to the asynchronous request and response streams.</returns>
/// <param name="call">The call definition.</param> /// <param name="call">The call definition.</param>
/// <typeparam name="TRequest">Type of request messages.</typeparam> /// <typeparam name="TRequest">Type of request messages.</typeparam>
/// <typeparam name="TResponse">Type of reponse messages.</typeparam> /// <typeparam name="TResponse">Type of responsemessages.</typeparam>
public static AsyncDuplexStreamingCall<TRequest, TResponse> AsyncDuplexStreamingCall<TRequest, TResponse>(CallInvocationDetails<TRequest, TResponse> call) public static AsyncDuplexStreamingCall<TRequest, TResponse> AsyncDuplexStreamingCall<TRequest, TResponse>(CallInvocationDetails<TRequest, TResponse> call)
where TRequest : class where TRequest : class
where TResponse : class where TResponse : class

@ -97,7 +97,7 @@ namespace Grpc.Testing {
/// the server via the "gRPCLB fallback" path, and "backend" if it detects /// the server via the "gRPCLB fallback" path, and "backend" if it detects
/// that the RPC reached the server via "gRPCLB backend" path (i.e. if it got /// that the RPC reached the server via "gRPCLB backend" path (i.e. if it got
/// the address of this server from the gRPCLB server BalanceLoad RPC). Exactly /// the address of this server from the gRPCLB server BalanceLoad RPC). Exactly
/// how this detection is done is context and server dependant. /// how this detection is done is context and server dependent.
/// </summary> /// </summary>
public enum GrpclbRouteType { public enum GrpclbRouteType {
/// <summary> /// <summary>

@ -46,7 +46,7 @@ namespace Grpc.Testing {
} }
#region Messages #region Messages
/// <summary> /// <summary>
/// Reponse message containing the gauge name and value /// Response message containing the gauge name and value
/// </summary> /// </summary>
public sealed partial class GaugeResponse : pb::IMessage<GaugeResponse> { public sealed partial class GaugeResponse : pb::IMessage<GaugeResponse> {
private static readonly pb::MessageParser<GaugeResponse> _parser = new pb::MessageParser<GaugeResponse>(() => new GaugeResponse()); private static readonly pb::MessageParser<GaugeResponse> _parser = new pb::MessageParser<GaugeResponse>(() => new GaugeResponse());

@ -44,7 +44,7 @@ typedef NS_ENUM(NSInteger, GRXWriterState) {
/** /**
* The writer has released its writeable and won't interact with it anymore. * The writer has released its writeable and won't interact with it anymore.
* *
* One seldomly wants to set a writer's state to this value, as its writeable isn't notified with * One seldom wants to set a writer's state to this value, as its writeable isn't notified with
* a writesFinishedWithError: message. Instead, sending finishWithError: to the writer will make * a writesFinishedWithError: message. Instead, sending finishWithError: to the writer will make
* it notify the writeable and then transition to this state. * it notify the writeable and then transition to this state.
*/ */

@ -38,7 +38,7 @@
+ (NSString *)host; + (NSString *)host;
/** /**
* Bytes of overhead of test proto responses due to encoding. This is used to excercise the behavior * Bytes of overhead of test proto responses due to encoding. This is used to exercise the behavior
* when responses are just above or below the max response size. For some reason, the local and * when responses are just above or below the max response size. For some reason, the local and
* remote servers enconde responses with different overhead (?), so this is defined per-subclass. * remote servers enconde responses with different overhead (?), so this is defined per-subclass.
*/ */

@ -173,7 +173,7 @@ void prefork() {
void postfork_child() { void postfork_child() {
TSRMLS_FETCH(); TSRMLS_FETCH();
// loop through persistant list and destroy all underlying grpc_channel objs // loop through persistent list and destroy all underlying grpc_channel objs
destroy_grpc_channels(); destroy_grpc_channels();
// clear completion queue // clear completion queue

@ -9,7 +9,7 @@ use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
/** /**
* Reponse message containing the gauge name and value * Response message containing the gauge name and value
* *
* Generated from protobuf message <code>grpc.testing.GaugeResponse</code> * Generated from protobuf message <code>grpc.testing.GaugeResponse</code>
*/ */

@ -53,7 +53,7 @@ message EchoStatus {
// the server via the "gRPCLB fallback" path, and "backend" if it detects // the server via the "gRPCLB fallback" path, and "backend" if it detects
// that the RPC reached the server via "gRPCLB backend" path (i.e. if it got // that the RPC reached the server via "gRPCLB backend" path (i.e. if it got
// the address of this server from the gRPCLB server BalanceLoad RPC). Exactly // the address of this server from the gRPCLB server BalanceLoad RPC). Exactly
// how this detection is done is context and server dependant. // how this detection is done is context and server dependent.
enum GrpclbRouteType { enum GrpclbRouteType {
// Server didn't detect the route that a client took to reach it. // Server didn't detect the route that a client took to reach it.
GRPCLB_ROUTE_TYPE_UNKNOWN = 0; GRPCLB_ROUTE_TYPE_UNKNOWN = 0;

@ -22,7 +22,7 @@ syntax = "proto3";
package grpc.testing; package grpc.testing;
// Reponse message containing the gauge name and value // Response message containing the gauge name and value
message GaugeResponse { message GaugeResponse {
string name = 1; string name = 1;
oneof value { oneof value {

Loading…
Cancel
Save