Skip to content

Commit

Permalink
refactor: Replace deprecated Client.request with equivalent Client.ba…
Browse files Browse the repository at this point in the history
…tched (#3370)
  • Loading branch information
seakayone authored Sep 20, 2024
1 parent 56733d2 commit 07ca968
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration/src/test/scala/org/knora/sipi/SipiIT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object SipiIT extends ZIOSpecDefault {
SipiTestContainer
.resolveUrl(path)
.map(url => Request.get(url).addHeaders(Headers(headers)))
.flatMap(Client.request(_))
.flatMap(Client.batched)

private def createJwt(scope: AuthScope): UIO[String] = for {
now <- Clock.instant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ final case class DspIngestClientLive(
Header.ContentType(MediaType.application.zip),
),
)
response <- Client.request(request).provideSomeLayer[Scope](Client.default)
response <- Client.batched(request).provideSomeLayer[Scope](Client.default)
bodyAsString <- response.body.asString
_ <- ZIO.logInfo(s"Response code: ${response.status} body $bodyAsString")
} yield fileToImport
Expand Down

0 comments on commit 07ca968

Please sign in to comment.