Skip to content

Commit

Permalink
Fix startup #dockerpush
Browse files Browse the repository at this point in the history
  • Loading branch information
smaugfm committed Mar 29, 2024
1 parent da3a13f commit f612a8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/kotlin/io/github/smaugfm/monobudget/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package io.github.smaugfm.monobudget

import io.github.oshai.kotlinlogging.KotlinLogging
import io.github.resilience4j.reactor.retry.RetryOperator
import io.github.resilience4j.retry.Retry
import io.github.smaugfm.lunchmoney.api.LunchmoneyApi
import io.github.smaugfm.lunchmoney.model.LunchmoneyInsertTransaction
import io.github.smaugfm.lunchmoney.model.LunchmoneyTransaction
Expand Down Expand Up @@ -113,7 +114,7 @@ private fun lunchmoneyModule(budgetBackend: Lunchmoney) =
single {
LunchmoneyApi(
budgetBackend.token,
requestTransformer = RetryOperator.of(get()),
requestTransformer = RetryOperator.of(Retry.ofDefaults("default")),
)
}
} + LunchmoneyModule().module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import kotlin.time.Duration
class JacksonFileStatementRetryRepository(
private val path: Path,
) : StatementRetryRepository {
internal val objectMapper =
private val objectMapper =
jsonMapper {
enable(SerializationFeature.INDENT_OUTPUT)
addModule(kotlinModule())
Expand Down

0 comments on commit f612a8a

Please sign in to comment.