-
Notifications
You must be signed in to change notification settings - Fork 18
refactor(dsp-api): Replace Pekko HTTP server with zio-http (DEV-4870) #3798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(dsp-api): Replace Pekko HTTP server with zio-http (DEV-4870) #3798
Conversation
…/replace-pekko-http-with-zio-http-2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 👍
): Task[Response[Either[String, A]]] = | ||
addAuthIfNeeded(user, request).flatMap { req => | ||
req | ||
// .copy(options = req.options.copy(readTimeout = 5.seconds.asScala)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose this can be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes -> d67b1f6
def json(): ULayer[Unit] = Runtime.removeDefaultLoggers >>> jsonLogger >+> Slf4jBridge.initialize | ||
|
||
val text: ULayer[Unit] = Runtime.removeDefaultLoggers >>> textLogger >+> Slf4jBridge.initialize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming json()
can be deleted too, right? I think the only way a logger is ever picked, is through fromEnv()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes -> be78c6f
Uh oh!
There was an error while loading. Please reload this page.