File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
oura-library/src/main/kotlin/org/radarbase/oura/request Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments