Skip to content

Change backend client for awsLambda#1365

Merged
adamw merged 5 commits intomasterfrom
unknown repository
Jul 9, 2021
Merged

Change backend client for awsLambda#1365
adamw merged 5 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jul 8, 2021

closes #1326

@ghost ghost requested a review from adamw July 8, 2021 09:03
@ghost ghost assigned slabiakt and ghost Jul 8, 2021
Comment thread build.sbt
libraryDependencies ++= loggerDependencies,
libraryDependencies ++= Seq(
"com.softwaremill.sttp.client3" %% "http4s-ce2-backend" % Versions.sttp,
"org.http4s" %% "http4s-blaze-client" % Versions.http4sOld
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it's possible to remove the constant Versions.http4sOld now?


abstract class AwsLambdaRuntime[F[_]: ContextShift: ConcurrentEffect] extends StrictLogging {
def endpoints: Iterable[ServerEndpoint[_, _, _, Any, F]]
abstract class AwsLambdaRuntime extends StrictLogging {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have to keep the F constraint here, as the endpoints we want to use should be parametrised with F as well. See this backend: https://sttp.softwaremill.com/en/latest/backends/fs2.html#using-httpclient-java-11

@adamw
Copy link
Copy Markdown
Member

adamw commented Jul 8, 2021

Unfortunately awsLambdaTests failed

@adamw adamw merged commit 670e4ba into softwaremill:master Jul 9, 2021
@adamw
Copy link
Copy Markdown
Member

adamw commented Jul 9, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove http4s dependency from awsLambda

2 participants