This is an automated email from the ASF dual-hosted git repository.
raboof 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 0a3519b1 use FastFuture.successful (#390)
0a3519b1 is described below
commit 0a3519b196d4b7ddf85c310bacb7a977f65ff897
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Jul 17 22:04:47 2026 +0100
use FastFuture.successful (#390)
---
codegen/src/main/twirl/templates/ScalaServer/Handler.scala.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/codegen/src/main/twirl/templates/ScalaServer/Handler.scala.txt
b/codegen/src/main/twirl/templates/ScalaServer/Handler.scala.txt
index 5106b44a..d7c2c183 100644
--- a/codegen/src/main/twirl/templates/ScalaServer/Handler.scala.txt
+++ b/codegen/src/main/twirl/templates/ScalaServer/Handler.scala.txt
@@ -44,8 +44,8 @@ import pekko.grpc.PekkoGrpcGenerated
@@ApiMayChange
@@PekkoGrpcGenerated
object @{serviceName}Handler {
- private val notFound =
scala.concurrent.Future.successful(model.HttpResponse(model.StatusCodes.NotFound))
- private val unsupportedMediaType =
scala.concurrent.Future.successful(model.HttpResponse(model.StatusCodes.UnsupportedMediaType))
+ private val notFound =
org.apache.pekko.http.scaladsl.util.FastFuture.successful(model.HttpResponse(model.StatusCodes.NotFound))
+ private val unsupportedMediaType =
org.apache.pekko.http.scaladsl.util.FastFuture.successful(model.HttpResponse(model.StatusCodes.UnsupportedMediaType))
/**
* Creates a `HttpRequest` to `HttpResponse` handler that can be used in
for example `Http().bindAndHandleAsync`
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]