Skip to content

Commit

Permalink
Revert "Øke timeout mot gosys"
Browse files Browse the repository at this point in the history
This reverts commit d913fa1.
  • Loading branch information
geiralund committed Oct 3, 2023
1 parent d913fa1 commit 5cb3b58
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.natpryce.konfig.Configuration
import io.ktor.client.HttpClient
import io.ktor.client.call.body
import io.ktor.client.plugins.DefaultRequest
import io.ktor.client.plugins.HttpTimeout
import io.ktor.client.plugins.contentnegotiation.ContentNegotiation
import io.ktor.client.request.header
import io.ktor.client.request.request
Expand All @@ -18,7 +17,6 @@ import no.nav.dagpenger.mottak.Config.dpProxyTokenProvider
import no.nav.dagpenger.mottak.Config.dpProxyUrl
import no.nav.dagpenger.mottak.behov.JsonMapper
import java.time.LocalDate
import kotlin.time.Duration.Companion.minutes

internal interface GosysOppslag {
suspend fun opprettOppgave(oppgave: GosysOppgaveRequest): String
Expand Down Expand Up @@ -56,9 +54,6 @@ internal class GosysProxyClient(config: Configuration) : GosysOppslag {
install(ContentNegotiation) {
register(ContentType.Application.Json, JacksonConverter(JsonMapper.jacksonJsonAdapter))
}
install(HttpTimeout) {
requestTimeoutMillis = 2.minutes.inWholeMilliseconds
}
}

override suspend fun opprettOppgave(oppgave: GosysOppgaveRequest): String {
Expand Down

0 comments on commit 5cb3b58

Please sign in to comment.