From bb37524750fa4923f7dc390f5f961602b46b3790 Mon Sep 17 00:00:00 2001 From: Ziad Hatahet Date: Tue, 18 Feb 2020 13:16:08 -0500 Subject: [PATCH] examples: Fix typo in comments (#6721) --- .../examples/manualflowcontrol/ManualFlowControlClient.java | 2 +- .../examples/manualflowcontrol/ManualFlowControlServer.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/src/main/java/io/grpc/examples/manualflowcontrol/ManualFlowControlClient.java b/examples/src/main/java/io/grpc/examples/manualflowcontrol/ManualFlowControlClient.java index 1e4a3762ed..f442de6d52 100644 --- a/examples/src/main/java/io/grpc/examples/manualflowcontrol/ManualFlowControlClient.java +++ b/examples/src/main/java/io/grpc/examples/manualflowcontrol/ManualFlowControlClient.java @@ -66,7 +66,7 @@ public class ManualFlowControlClient { // Note: the onReadyHandler's invocation is serialized on the same thread pool as the incoming // StreamObserver's onNext(), onError(), and onComplete() handlers. Blocking the onReadyHandler will prevent // additional messages from being processed by the incoming StreamObserver. The onReadyHandler must return - // in a timely manor or else message processing throughput will suffer. + // in a timely manner or else message processing throughput will suffer. requestStream.setOnReadyHandler(new Runnable() { // An iterator is used so we can pause and resume iteration of the request data. Iterator iterator = names().iterator(); diff --git a/examples/src/main/java/io/grpc/examples/manualflowcontrol/ManualFlowControlServer.java b/examples/src/main/java/io/grpc/examples/manualflowcontrol/ManualFlowControlServer.java index 694330dfdb..4ad5930843 100644 --- a/examples/src/main/java/io/grpc/examples/manualflowcontrol/ManualFlowControlServer.java +++ b/examples/src/main/java/io/grpc/examples/manualflowcontrol/ManualFlowControlServer.java @@ -46,8 +46,8 @@ public class ManualFlowControlServer { // // Note: the onReadyHandler's invocation is serialized on the same thread pool as the incoming StreamObserver's // onNext(), onError(), and onComplete() handlers. Blocking the onReadyHandler will prevent additional messages - // from being processed by the incoming StreamObserver. The onReadyHandler must return in a timely manor or else - // message processing throughput will suffer. + // from being processed by the incoming StreamObserver. The onReadyHandler must return in a timely manner or + // else message processing throughput will suffer. class OnReadyHandler implements Runnable { // Guard against spurious onReady() calls caused by a race between onNext() and onReady(). If the transport // toggles isReady() from false to true while onNext() is executing, but before onNext() checks isReady(),