Skip to content

Commit 6184b54

Browse files
committed
Merge branch 'dev' of https://github.com/RADAR-base/RADAR-REST-Connector into oura-rest-connector
2 parents afbd32f + daaa278 commit 6184b54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ constructor(
109109
ouraOffsetManager.updateOffsets(
110110
request.route,
111111
request.user,
112-
Instant.ofEpochSecond(offset).plus(Duration.ofDays(1)),
112+
Instant.ofEpochSecond(offset).plus(Duration.ofMillis(500)),
113113
)
114114
} else {
115115
if (request.startDate.plus(TIME_AFTER_REQUEST).isBefore(Instant.now())) {
@@ -194,8 +194,8 @@ constructor(
194194
private val logger = LoggerFactory.getLogger(OuraRequestGenerator::class.java)
195195
private val BACK_OFF_TIME = Duration.ofMinutes(10L)
196196
private val ONE_DAY = 1L
197-
private val TIME_AFTER_REQUEST = Duration.ofMinutes(1)
198-
private val USER_BACK_OFF_TIME = Duration.ofDays(1L)
197+
private val TIME_AFTER_REQUEST = Duration.ofDays(30)
198+
private val USER_BACK_OFF_TIME = Duration.ofMinutes(2L)
199199
private val USER_MAX_REQUESTS = 20
200200
val JSON_FACTORY = JsonFactory()
201201
val JSON_READER = ObjectMapper(JSON_FACTORY).registerModule(JavaTimeModule()).reader()

0 commit comments

Comments
 (0)