Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoet committed Feb 27, 2025
1 parent aa3b505 commit 39aa404
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ trait SamApiClientProvider[F[_]] {

class HttpSamApiClientProvider[F[_]](samUrl: String, maxConcurrentRequests: Int)(implicit F: Async[F])
extends SamApiClientProvider[F] {
private val okHttpClient = buildOkHttpClient
private val timeout = 30 seconds

private def buildOkHttpClient = {
private val okHttpClient = {
val dispatcher = new Dispatcher()
dispatcher.setMaxRequests(maxConcurrentRequests)
dispatcher.setMaxRequestsPerHost(maxConcurrentRequests)

Check warning on line 35 in http/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/dao/sam/SamApiClientProvider.scala

View check run for this annotation

Codecov / codecov/patch

http/src/main/scala/org/broadinstitute/dsde/workbench/leonardo/dao/sam/SamApiClientProvider.scala#L33-L35

Added lines #L33 - L35 were not covered by tests
Expand Down

0 comments on commit 39aa404

Please sign in to comment.