This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-grpc.git
The following commit(s) were added to refs/heads/main by this push:
new 6108f1b8 try to avoid unnecessary map conversions in Java DSL (#522)
6108f1b8 is described below
commit 6108f1b85566e50831a14f2d21090603d046c603
Author: PJ Fanning <[email protected]>
AuthorDate: Thu Oct 2 13:59:28 2025 +0100
try to avoid unnecessary map conversions in Java DSL (#522)
* try to avoid unnecessary map conversions in Java DSL
* Update ServerReflection.scala
---
.../main/scala/org/apache/pekko/grpc/javadsl/ServerReflection.scala | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/runtime/src/main/scala/org/apache/pekko/grpc/javadsl/ServerReflection.scala
b/runtime/src/main/scala/org/apache/pekko/grpc/javadsl/ServerReflection.scala
index 7e1cdf39..db721891 100644
---
a/runtime/src/main/scala/org/apache/pekko/grpc/javadsl/ServerReflection.scala
+++
b/runtime/src/main/scala/org/apache/pekko/grpc/javadsl/ServerReflection.scala
@@ -35,11 +35,10 @@ object ServerReflection {
val delegate = ServerReflectionHandler.apply(
ServerReflectionImpl(objects.asScala.map(_.descriptor).toSeq,
objects.asScala.map(_.name).toList))(sys)
import scala.jdk.FutureConverters._
- implicit val ec = sys.classicSystem.dispatcher
request =>
delegate
.apply(request.asInstanceOf[pekko.http.scaladsl.model.HttpRequest])
- .map(_.asInstanceOf[HttpResponse])
.asJava
+ .asInstanceOf[CompletionStage[HttpResponse]]
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]