Skip to content

Commit 17d0d45

Browse files
authored
Merge pull request #134 from RADAR-base/fix/oura-backoff
Update Oura request backoff times
2 parents 7e1af09 + 7908a49 commit 17d0d45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oura-library/src/main/kotlin/org/radarbase/oura/request/OuraRequestGenerator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ constructor(
242242
private val BACK_OFF_TIME = Duration.ofMinutes(10L)
243243
private val ONE_DAY = 1L
244244
private val TIME_AFTER_REQUEST = Duration.ofDays(30)
245-
private val USER_BACK_OFF_TIME = Duration.ofMinutes(2L)
246-
private val SUCCESS_BACK_OFF_TIME = Duration.ofSeconds(3L)
245+
private val USER_BACK_OFF_TIME = Duration.ofHours(12L)
246+
private val SUCCESS_BACK_OFF_TIME = Duration.ofMinutes(1L)
247247
private val USER_MAX_REQUESTS = 20
248248
val JSON_FACTORY = JsonFactory()
249249
val JSON_READER = ObjectMapper(JSON_FACTORY).registerModule(JavaTimeModule()).reader()

0 commit comments

Comments
 (0)