Skip to content

Commit

Permalink
change http4s client
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenCMD committed Jan 6, 2024
1 parent d987f5a commit 37c4a4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ libraryDependencies ++= Seq(
"org.http4s" %%% "http4s-client" % "0.23.23",
"org.http4s" %%% "http4s-dsl" % "0.23.23",
"org.http4s" %%% "http4s-circe" % "0.23.23",
"org.http4s" %% "http4s-blaze-client" % "0.23.10",
"org.http4s" %%% "http4s-ember-client" % "0.23.25",
"io.circe" %%% "circe-generic" % "0.14.6"
)
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import typings.octokitWebhooksTypes.mod.PushEvent

import io.circe.generic.auto.*
import org.http4s.*
import org.http4s.blaze.client.BlazeClientBuilder
import org.http4s.ember.client.EmberClientBuilder
import org.http4s.circe.*

object GitHubCacheRestoration {
Expand All @@ -38,7 +38,7 @@ object GitHubCacheRestoration {
import RestoreCacheOrSkip.*
val program = for {
commitMessages: List[String] <- EitherT.liftF {
BlazeClientBuilder[F].resource.use { client =>
EmberClientBuilder.default[F].build.use { client =>
ghCtx.eventName match {
case "push" => ghCtx.payload.asInstanceOf[PushEvent].commits.toList.map(_.message).pure[F]
case "pull_request" if ghCtx.payload.action == "synchronize" =>
Expand Down

0 comments on commit 37c4a4b

Please sign in to comment.