diff options
Diffstat (limited to 'nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt')
-rw-r--r-- | nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt index 8b413b44..2e67eb3b 100644 --- a/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt +++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt @@ -30,6 +30,7 @@ import org.jetbrains.exposed.sql.transactions.transaction import tech.libeufin.nexus.bankaccount.fetchBankAccountTransactions import tech.libeufin.nexus.bankaccount.submitAllPaymentInitiations import tech.libeufin.nexus.server.FetchSpecJson +import tech.libeufin.nexus.server.client import java.lang.IllegalArgumentException import java.time.Duration import java.time.Instant @@ -162,7 +163,7 @@ suspend fun javaTimerOperationScheduler(httpClient: HttpClient) { } */ -suspend fun whileTrueOperationScheduler(httpClient: HttpClient) { +suspend fun whileTrueOperationScheduler(httpClient: HttpClient = client) { while (true) { operationScheduler(httpClient) // Wait the shortest period that the cron spec would allow. |