commit b62983aec7e46bc3a0dfa7148c766ae1b0481040
parent c8890e15a04d96522952e68f2ae8d3076266c6b4
Author: Antoine A <>
Date: Thu, 9 Jan 2025 11:44:20 +0100
nexus: fix long overflow
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/cli/EbicsFetch.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/cli/EbicsFetch.kt
@@ -408,7 +408,7 @@ class EbicsFetch: CliktCommand() {
tmp
}
- var lastFetch = Instant.MIN
+ var lastFetch = Instant.EPOCH
var checkpoint = db.kv.get<Checkpoint>(CHECKPOINT_KEY) ?: Checkpoint()
while (true) {
@@ -416,7 +416,7 @@ class EbicsFetch: CliktCommand() {
var nextCheckpoint = run {
// We never ran, we must checkpoint now
if (checkpoint.last_trial == null) {
- Instant.MIN
+ Instant.EPOCH
} else {
// We run today at checkpointTime
val checkpointDate = OffsetDateTime.now().with(cfg.fetch.checkpointTime)