From 97b4765edf33da0aaf5802f9abc1683b994a315f Mon Sep 17 00:00:00 2001 From: stevomcallister Date: Thu, 21 Sep 2023 16:39:04 +0100 Subject: [PATCH] PI-1478 changes to retry exceptions --- .../src/main/kotlin/uk/gov/justice/digital/hmpps/retry/Retry.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/commons/src/main/kotlin/uk/gov/justice/digital/hmpps/retry/Retry.kt b/libs/commons/src/main/kotlin/uk/gov/justice/digital/hmpps/retry/Retry.kt index b2dab5ec19..863d3992ac 100644 --- a/libs/commons/src/main/kotlin/uk/gov/justice/digital/hmpps/retry/Retry.kt +++ b/libs/commons/src/main/kotlin/uk/gov/justice/digital/hmpps/retry/Retry.kt @@ -6,8 +6,8 @@ import kotlin.reflect.KClass fun retry( maxRetries: Int, - delay: Duration = Duration.ofMillis(100), exceptions: List> = listOf(Exception::class), + delay: Duration = Duration.ofMillis(100), code: () -> T ): T { var throwable: Throwable?