summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine A <>2024-03-25 19:26:09 +0100
committerAntoine A <>2024-03-25 19:26:09 +0100
commiteb5027830109002d6d0513b5c782b3ae96e339bc (patch)
tree42e67b7dd675cb7d4926a40f8a66cc8aec07453b
parent2460b772ac4e870aa307512cce1a8aa454d2d625 (diff)
downloadlibeufin-eb5027830109002d6d0513b5c782b3ae96e339bc.tar.gz
libeufin-eb5027830109002d6d0513b5c782b3ae96e339bc.tar.bz2
libeufin-eb5027830109002d6d0513b5c782b3ae96e339bc.zip
Improve default backoff config
-rw-r--r--common/src/main/kotlin/Backoff.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/src/main/kotlin/Backoff.kt b/common/src/main/kotlin/Backoff.kt
index e92eb1be..c0fb7444 100644
--- a/common/src/main/kotlin/Backoff.kt
+++ b/common/src/main/kotlin/Backoff.kt
@@ -1,6 +1,6 @@
/*
* This file is part of LibEuFin.
- * Copyright (C) 2023 Taler Systems S.A.
+ * Copyright (C) 2023-2024 Taler Systems S.A.
* LibEuFin is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -23,8 +23,8 @@ import kotlin.random.Random
/** Infinite exponential backoff with decorrelated jitter */
class ExpoBackoffDecorr(
- private val base: Long = 100, // 0.1 second
- private val max: Long = 5000, // 5 second
+ private val base: Long = 100, // 0.1 second
+ private val max: Long = 60000, // 60 seconds
private val factor: Double = 2.0,
) {
private var sleep: Long = base