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?