Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-olaveide committed May 15, 2023
1 parent 4bed299 commit 6b77343
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/kotlin/no/nav/aap/api/felles/graphql/GraphQL.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ interface GraphQLErrorHandler {

fun handle(e : Throwable) : Nothing


}

class GraphQLDefaultErrorHandler : GraphQLErrorHandler {
Expand Down Expand Up @@ -94,7 +93,7 @@ abstract class AbstractGraphQLAdapter(client : WebClient, cfg : AbstractRestConf
else -> it
}
}
.retryWhen(retrySpec(log, "/graphql") { it is RecoverableGraphQLException || it is GraphQlTransportException})
.retryWhen(retrySpec(log, "/graphql") { it is RecoverableGraphQLException})
.contextCapture()
.block() ?: emptyList()).also {
log.trace("Slo opp liste av {} {}", T::class.java.simpleName, it)
Expand All @@ -112,7 +111,7 @@ abstract class AbstractGraphQLAdapter(client : WebClient, cfg : AbstractRestConf
.retrieve(query.second)
.toEntity(T::class.java)
.onErrorMap { if (it is FieldAccessException) it.oversett() else it}
.retryWhen(retrySpec(log, "/graphql") { it is RecoverableGraphQLException || it is GraphQlTransportException})
.retryWhen(retrySpec(log, "/graphql") { it is RecoverableGraphQLException})
.contextCapture()
.block().also {
log.trace("Slo opp {} {}", T::class.java.simpleName, it)
Expand Down

0 comments on commit 6b77343

Please sign in to comment.