Fix Typos In Docs & Code Comments (#37170)

There are several typos in files within the ./examples/* directory, so just a PR to fix them

Closes #37170

PiperOrigin-RevId: 650818587
pull/37187/head
Michael 5 months ago committed by Copybara-Service
parent a47d91c7b2
commit c4bbaa25f8
  1. 2
      TROUBLESHOOTING.md
  2. 2
      examples/android/helloworld/gradlew.bat
  3. 2
      examples/cpp/auth/README.md
  4. 2
      examples/cpp/csm/README.md
  5. 2
      examples/cpp/deadline/README.md
  6. 2
      examples/cpp/generic_api/greeter_server.cc
  7. 2
      examples/cpp/helloworld/greeter_async_server.cc
  8. 2
      examples/cpp/xds/README.md
  9. 2
      examples/php/Helloworld/GreeterStub.php
  10. 4
      examples/php/route_guide/Routeguide/RouteGuideStub.php
  11. 2
      examples/python/observability/csm/BUILD.bazel
  12. 2
      examples/python/observability/csm/README.md
  13. 2
      examples/python/wait_for_ready/wait_for_ready_with_client_timeout_example_server.py
  14. 2
      examples/python/xds/README.md

@ -61,5 +61,5 @@ of extra logs.
Log noise could consume a lot of resources. We recommend tuning settings for production systems very carefully. Log noise could consume a lot of resources. We recommend tuning settings for production systems very carefully.
* Avoid using GRPC_VERBOSITY flag. This has been deprecated. If this value of this flag is anything other than "ERROR" or "NONE" it will cause log noise. * Avoid using GRPC_VERBOSITY flag. This has been deprecated. If this value of this flag is anything other than "ERROR" or "NONE" it will cause log noise.
* Always avoid setting --v and --vmodule to anything other than -1 for production systems. * Always avoid setting --v and --vmodule to anything other than -1 for production systems.
* Avoid setting --minloglevel=0 for production systems. Anyting greater than 0 should be fine. * Avoid setting --minloglevel=0 for production systems. Anything greater than 0 should be fine.
* If setting this does not eliminate your log noise, look for instances of functions `--v`, `--vmodule`, `absl::SetVLogLevel` and `absl::SetMinLogLevel` in your entire codebase and any libraries/components/configs that you may be using. * If setting this does not eliminate your log noise, look for instances of functions `--v`, `--vmodule`, `absl::SetVLogLevel` and `absl::SetMinLogLevel` in your entire codebase and any libraries/components/configs that you may be using.

@ -46,7 +46,7 @@ echo location of your Java installation.
goto fail goto fail
:init :init
@rem Get command-line arguments, handling Windowz variants @rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args if "%@eval[2+2]" == "4" goto 4NT_args

@ -7,7 +7,7 @@ communication security. In the example, we show how to set up a server
authenticated SSL connection to transmit RPC. authenticated SSL connection to transmit RPC.
We provide `grpc::SslServerCredentials` and `grpc::SslCredentials` types We provide `grpc::SslServerCredentials` and `grpc::SslCredentials` types
to use SSL conections. to use SSL connections.
In our example, we use the public/private keys created ahead: In our example, we use the public/private keys created ahead:
* "localhost.crt" contains the server certificate (public key). * "localhost.crt" contains the server certificate (public key).

@ -5,7 +5,7 @@ This CSM example builds on the [Hello World Example](https://github.com/grpc/grp
## Configuration ## Configuration
The client takes the following command-line arguments - The client takes the following command-line arguments -
* target - By default, the client tries to connect to the xDS "xds:///helloworld:50051" and gRPC would use xDS to resolve this target and connect to the server backend. This can be overriden to change the target. * target - By default, the client tries to connect to the xDS "xds:///helloworld:50051" and gRPC would use xDS to resolve this target and connect to the server backend. This can be overridden to change the target.
* cookie_name - session affinity cookie name. Defaults to "GSSA" * cookie_name - session affinity cookie name. Defaults to "GSSA"
* delay_s - delay (in seconds) between the RPCs. Default value is 5 * delay_s - delay (in seconds) between the RPCs. Default value is 5

@ -22,7 +22,7 @@ $ ./client
To simulate the test scenario, the test server implements following functionalities: To simulate the test scenario, the test server implements following functionalities:
- Response Delay: The server intentionally delays its response for `delay` request messages to induce timeout conditions. - Response Delay: The server intentionally delays its response for `delay` request messages to induce timeout conditions.
- Deadline Propagation: Upon receiving a request with the `[propagate me]` prefix, the server forwards it back to itselt. - Deadline Propagation: Upon receiving a request with the `[propagate me]` prefix, the server forwards it back to itself.
This simulates the propagation of deadlines within the system. This simulates the propagation of deadlines within the system.
If things go smoothly, you will see the client output: If things go smoothly, you will see the client output:

@ -55,7 +55,7 @@ class GreeterServiceImpl final : public CallbackGenericService {
// Let the SayHello reactor handle this now on. // Let the SayHello reactor handle this now on.
return new SayHelloReactor(); return new SayHelloReactor();
} else { } else {
// Forward this to the implementation of the base calss returning // Forward this to the implementation of the base class returning
// UNIMPLEMENTED. // UNIMPLEMENTED.
return CallbackGenericService::CreateReactor(context); return CallbackGenericService::CreateReactor(context);
} }

@ -77,7 +77,7 @@ class ServerImpl final {
} }
private: private:
// Class encompasing the state and logic needed to serve a request. // Class encompassing the state and logic needed to serve a request.
class CallData { class CallData {
public: public:
// Take in the "service" instance (in this case representing an asynchronous // Take in the "service" instance (in this case representing an asynchronous

@ -5,7 +5,7 @@ This xDS example builds on the [Hello World Example](https://github.com/grpc/grp
## Configuration ## Configuration
The client takes two command-line arguments - The client takes two command-line arguments -
* target - By default, the client tries to connect to the xDS "xds:///helloworld:50051" and gRPC would use xDS to resolve this target and connect to the server backend. This can be overriden to change the target. * target - By default, the client tries to connect to the xDS "xds:///helloworld:50051" and gRPC would use xDS to resolve this target and connect to the server backend. This can be overridden to change the target.
* secure - Bool value, defaults to true. When this is set, [XdsCredentials](https://github.com/grpc/proposal/blob/master/A29-xds-tls-security.md) will be used with a fallback on `InsecureChannelCredentials`. If unset, `InsecureChannelCredentials` will be used. * secure - Bool value, defaults to true. When this is set, [XdsCredentials](https://github.com/grpc/proposal/blob/master/A29-xds-tls-security.md) will be used with a fallback on `InsecureChannelCredentials`. If unset, `InsecureChannelCredentials` will be used.
The server takes three command-line arguments - The server takes three command-line arguments -

@ -27,7 +27,7 @@ class GreeterStub {
* Sends a greeting * Sends a greeting
* @param \Helloworld\HelloRequest $request client request * @param \Helloworld\HelloRequest $request client request
* @param \Grpc\ServerContext $context server request context * @param \Grpc\ServerContext $context server request context
* @return \Helloworld\HelloReply for response data, null if if error occured * @return \Helloworld\HelloReply for response data, null if if error occurred
* initial metadata (if any) and status (if not ok) should be set to $context * initial metadata (if any) and status (if not ok) should be set to $context
*/ */
public function SayHello( public function SayHello(

@ -32,7 +32,7 @@ class RouteGuideStub {
* position. * position.
* @param \Routeguide\Point $request client request * @param \Routeguide\Point $request client request
* @param \Grpc\ServerContext $context server request context * @param \Grpc\ServerContext $context server request context
* @return \Routeguide\Feature for response data, null if if error occured * @return \Routeguide\Feature for response data, null if if error occurred
* initial metadata (if any) and status (if not ok) should be set to $context * initial metadata (if any) and status (if not ok) should be set to $context
*/ */
public function GetFeature( public function GetFeature(
@ -71,7 +71,7 @@ class RouteGuideStub {
* RouteSummary when traversal is completed. * RouteSummary when traversal is completed.
* @param \Grpc\ServerCallReader $reader read client request data of \Routeguide\Point * @param \Grpc\ServerCallReader $reader read client request data of \Routeguide\Point
* @param \Grpc\ServerContext $context server request context * @param \Grpc\ServerContext $context server request context
* @return \Routeguide\RouteSummary for response data, null if if error occured * @return \Routeguide\RouteSummary for response data, null if if error occurred
* initial metadata (if any) and status (if not ok) should be set to $context * initial metadata (if any) and status (if not ok) should be set to $context
*/ */
public function RecordRoute( public function RecordRoute(

@ -14,7 +14,7 @@
load("@grpc_python_dependencies//:requirements.bzl", "requirement") load("@grpc_python_dependencies//:requirements.bzl", "requirement")
# TODO(xuanwn): Instaed of using Bazel build, we should pip install all dependencies # TODO(xuanwn): Instead of using Bazel build, we should pip install all dependencies
# once we have a released version of grpcio-csm-observability. # once we have a released version of grpcio-csm-observability.
py_binary( py_binary(

@ -5,7 +5,7 @@ This CSM example builds on the [Python xDS Example](https://github.com/grpc/grpc
## Configuration ## Configuration
The client takes the following command-line arguments - The client takes the following command-line arguments -
* `--target` - By default, the client tries to connect to the target "xds:///helloworld:50051" and gRPC would use xDS to resolve this target and connect to the server backend. This can be overriden to change the target. * `--target` - By default, the client tries to connect to the target "xds:///helloworld:50051" and gRPC would use xDS to resolve this target and connect to the server backend. This can be overridden to change the target.
* `--secure_mode` - Whether to use xDS to retrieve server credentials. Default value is False. * `--secure_mode` - Whether to use xDS to retrieve server credentials. Default value is False.
* `--prometheus_endpoint` - Endpoint used for prometheus. Default value is localhost:9464. * `--prometheus_endpoint` - Endpoint used for prometheus. Default value is localhost:9464.

@ -52,7 +52,7 @@ class Greeter(helloworld_pb2_grpc.GreeterServicer):
starting_up_server() starting_up_server()
# Initial metadata will be send back immediately after calling send_initial_metadata. # Initial metadata will be send back immediately after calling send_initial_metadata.
print("sending inital metadata back") print("sending initial metadata back")
servicer_context.send_initial_metadata(_INITIAL_METADATA) servicer_context.send_initial_metadata(_INITIAL_METADATA)
# Time for server to process the request. # Time for server to process the request.

@ -28,7 +28,7 @@ python server.py
1. Set up xDS configuration. 1. Set up xDS configuration.
After configuring your xDS server to track the gRPC server we just started, After configuring your xDS server to track the gRPC server we just started,
create a bootstrap file as desribed in [gRFC A27](https://github.com/grpc/proposal/blob/master/A27-xds-global-load-balancing.md): create a bootstrap file as described in [gRFC A27](https://github.com/grpc/proposal/blob/master/A27-xds-global-load-balancing.md):
``` ```
{ {

Loading…
Cancel
Save