You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by he...@apache.org on 2023/07/06 23:00:38 UTC

[incubator-pekko-grpc] branch main updated: Fix typos

This is an automated email from the ASF dual-hosted git repository.

hepin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-grpc.git


The following commit(s) were added to refs/heads/main by this push:
     new a605bcfb Fix typos
a605bcfb is described below

commit a605bcfbfd881d433fabdc12dfc05972c9f7b2b7
Author: Matthew de Detrich <ma...@aiven.io>
AuthorDate: Thu Jul 6 19:38:02 2023 +0200

    Fix typos
---
 .../groovy/org/apache/pekko/grpc/gradle/PekkoGrpcPlugin.groovy    | 2 +-
 .../apache/pekko/grpc/scaladsl/NonBalancingIntegrationSpec.scala  | 2 +-
 .../scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala  | 4 ++--
 .../src/main/scala/org/apache/pekko/grpc/javadsl/WebHandler.scala | 8 ++++----
 .../main/scala/org/apache/pekko/grpc/scaladsl/WebHandler.scala    | 4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/gradle-plugin/src/main/groovy/org/apache/pekko/grpc/gradle/PekkoGrpcPlugin.groovy b/gradle-plugin/src/main/groovy/org/apache/pekko/grpc/gradle/PekkoGrpcPlugin.groovy
index 687ff4b1..07d3101a 100644
--- a/gradle-plugin/src/main/groovy/org/apache/pekko/grpc/gradle/PekkoGrpcPlugin.groovy
+++ b/gradle-plugin/src/main/groovy/org/apache/pekko/grpc/gradle/PekkoGrpcPlugin.groovy
@@ -21,7 +21,7 @@ class PekkoGrpcPlugin implements Plugin<Project> {
 
     Project project
 
-    // workaround for test projects, when one only neesd to tests a new plugin version without rebuilding dependencies.
+    // workaround for test projects, when one only needs to tests a new plugin version without rebuilding dependencies.
     String getBaselineVersion(String pluginVersion) {
         def pv = System.getProperty("pekko.grpc.baseline.version", pluginVersion)
         if (VersionNumber.parse(pv).qualifier) {
diff --git a/interop-tests/src/test/scala/org/apache/pekko/grpc/scaladsl/NonBalancingIntegrationSpec.scala b/interop-tests/src/test/scala/org/apache/pekko/grpc/scaladsl/NonBalancingIntegrationSpec.scala
index 7d1a46c2..6eedbee5 100644
--- a/interop-tests/src/test/scala/org/apache/pekko/grpc/scaladsl/NonBalancingIntegrationSpec.scala
+++ b/interop-tests/src/test/scala/org/apache/pekko/grpc/scaladsl/NonBalancingIntegrationSpec.scala
@@ -98,7 +98,7 @@ class NonBalancingIntegrationSpec(backend: String)
 
       if (this.isInstanceOf[NonBalancingIntegrationSpecNetty] && service1.greetings.get != numberOfRequests) {
         system.log.warning(
-          s"Found only ${service1.greetings.get} requests rather than $numberOfRequests, likely a flakey test")
+          s"Found only ${service1.greetings.get} requests rather than $numberOfRequests, likely a flaky test")
         pending
       } else
         service1.greetings.get should be(numberOfRequests)
diff --git a/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala b/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
index 947bf178..c9ff2a1b 100644
--- a/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
+++ b/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
@@ -42,7 +42,7 @@ object AbstractGenerateMojo {
         Right(unknown)
     }
 
-  private def captureStdOutAnderr[T](block: => T): (String, String, T) = {
+  private def captureStdOutAndErr[T](block: => T): (String, String, T) = {
     val errBao = new ByteArrayOutputStream()
     val errPrinter = new PrintStream(errBao, true, "UTF-8")
     val outBao = new ByteArrayOutputStream()
@@ -265,7 +265,7 @@ abstract class AbstractGenerateMojo @Inject() (buildContext: BuildContext) exten
       getLog.debug("protoc options: %s".format(protocOptions.mkString(",")))
 
       getLog.info("Compiling protobuf")
-      val (out, err, exitCode) = captureStdOutAnderr {
+      val (out, err, exitCode) = captureStdOutAndErr {
         executeProtoc(protocCommand, schemas, protoDir, protocOptions, generatedTargets)
       }
       if (exitCode != 0) {
diff --git a/runtime/src/main/scala/org/apache/pekko/grpc/javadsl/WebHandler.scala b/runtime/src/main/scala/org/apache/pekko/grpc/javadsl/WebHandler.scala
index ad4ea480..ee2e14e1 100644
--- a/runtime/src/main/scala/org/apache/pekko/grpc/javadsl/WebHandler.scala
+++ b/runtime/src/main/scala/org/apache/pekko/grpc/javadsl/WebHandler.scala
@@ -42,9 +42,9 @@ object WebHandler {
    * Creates a `HttpRequest` to `HttpResponse` handler for gRPC services that can be used in
    * for example `Http().bindAndHandleAsync` for the generated partial function handlers:
    *  - The generated handler supports the `application/grpc-web` and `application/grpc-web-text` media types.
-   *  - CORS is implemented for handled servives, including pre-flight requests and request enforcement.
+   *  - CORS is implemented for handled services, including pre-flight requests and request enforcement.
    *  - If the request s not a CORS pre-flight request, and has an invalid media type, then a _415: Unsupported Media Type_ response is produced.
-   *  - Otherise if the request is not handled by one of the provided handlers, a _404: Not Found_ response is produced.
+   *  - Otherwise if the request is not handled by one of the provided handlers, a _404: Not Found_ response is produced.
    */
   def grpcWebHandler(
       handlers: util.List[JFunction[HttpRequest, CompletionStage[HttpResponse]]],
@@ -66,9 +66,9 @@ object WebHandler {
    * Creates a `HttpRequest` to `HttpResponse` handler for gRPC services that can be used in
    * for example `Http().bind` for the generated partial function handlers:
    *  - The generated handler supports the `application/grpc-web` and `application/grpc-web-text` media types.
-   *  - CORS is implemented for handled servives, including pre-flight requests and request enforcement.
+   *  - CORS is implemented for handled services, including pre-flight requests and request enforcement.
    *  - If the request s not a CORS pre-flight request, and has an invalid media type, then a _415: Unsupported Media Type_ response is produced.
-   *  - Otherise if the request is not handled by one of the provided handlers, a _404: Not Found_ response is produced.
+   *  - Otherwise if the request is not handled by one of the provided handlers, a _404: Not Found_ response is produced.
    */
   def grpcWebHandler(
       handlers: util.List[JFunction[HttpRequest, CompletionStage[HttpResponse]]],
diff --git a/runtime/src/main/scala/org/apache/pekko/grpc/scaladsl/WebHandler.scala b/runtime/src/main/scala/org/apache/pekko/grpc/scaladsl/WebHandler.scala
index c6b3fa3a..933a0240 100644
--- a/runtime/src/main/scala/org/apache/pekko/grpc/scaladsl/WebHandler.scala
+++ b/runtime/src/main/scala/org/apache/pekko/grpc/scaladsl/WebHandler.scala
@@ -54,9 +54,9 @@ object WebHandler {
    * Creates a `HttpRequest` to `HttpResponse` handler for gRPC services that can be used in
    * for example `Http().bindAndHandleAsync` for the generated partial function handlers:
    *  - The generated handler supports the `application/grpc-web` and `application/grpc-web-text` media types.
-   *  - CORS is implemented for handled servives, including pre-flight requests and request enforcement.
+   *  - CORS is implemented for handled services, including pre-flight requests and request enforcement.
    *  - If the request is for a handled service, is not a CORS pre-flight request, and has an invalid media type, then a _415: Unsupported Media Type_ response is produced.
-   *  - Otherise if the request is not handled by one of the provided handlers, a _404: Not Found_ response is produced.
+   *  - Otherwise if the request is not handled by one of the provided handlers, a _404: Not Found_ response is produced.
    */
   def grpcWebHandler(handlers: PartialFunction[HttpRequest, Future[HttpResponse]]*)(
       implicit as: ClassicActorSystemProvider,


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org