Skip to content

Commit

Permalink
use FastFuture.successful
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Oct 21, 2024
1 parent f5bbf39 commit 6889ecf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 6889ecf

Please sign in to comment.