File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
kafka-connect-fitbit-source/src/main/java/org/radarbase/connect/rest/fitbit/user
kafka-connect-oura-source/src/main/java/org/radarbase/connect/rest/oura Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ import java.io.IOException
6161import java.util.concurrent.ConcurrentHashMap
6262import java.util.stream.Stream
6363import kotlin.time.Duration.Companion.days
64+ import kotlin.time.Duration.Companion.hours
6465import kotlin.time.Duration.Companion.minutes
6566import kotlin.time.Duration.Companion.seconds
6667import kotlin.time.toKotlinDuration
@@ -234,7 +235,7 @@ class ServiceUserRepository : UserRepository {
234235 }
235236
236237 override fun hasPendingUpdates (): Boolean = runBlocking(Dispatchers .Default ) {
237- userCache.isStale()
238+ userCache.isStale(1 .hours )
238239 }
239240
240241 @Throws(IOException ::class )
Original file line number Diff line number Diff line change 4444import org .apache .kafka .common .config .ConfigException ;
4545import org .apache .kafka .connect .errors .ConnectException ;
4646import org .radarbase .connect .rest .oura .user .OuraUserRepository ;
47- import org .radarbase .connect .rest .oura .user .OuraServiceUserRepositoryLegacy ;
47+ import org .radarbase .connect .rest .oura .user .OuraServiceUserRepository ;
4848
4949public class OuraRestSourceConnectorConfig extends AbstractConfig {
5050 public static final Pattern COLON_PATTERN = Pattern .compile (":" );
@@ -193,7 +193,7 @@ public String toString() {
193193
194194 .define (OURA_USER_REPOSITORY_CONFIG ,
195195 Type .CLASS ,
196- OuraServiceUserRepositoryLegacy .class ,
196+ OuraServiceUserRepository .class ,
197197 Importance .MEDIUM ,
198198 OURA_USER_REPOSITORY_DOC ,
199199 group ,
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ class OuraServiceUserRepository : OuraUserRepository() {
235235
236236 override fun hasPendingUpdates (): Boolean =
237237 runBlocking(Dispatchers .Default ) {
238- userCache.isStale()
238+ userCache.isStale(1 .hours )
239239 }
240240
241241 @Throws(IOException ::class )
You can’t perform that action at this time.
0 commit comments