Skip to content

Commit 2b5b196

Browse files
committed
fix: isStale call to fitbit connector respects external cache configuration
1 parent a2096f4 commit 2b5b196

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kafka-connect-fitbit-source/src/main/java/org/radarbase/connect/rest/fitbit/user/ServiceUserRepository.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ import java.io.IOException
6161
import java.util.concurrent.ConcurrentHashMap
6262
import java.util.stream.Stream
6363
import kotlin.time.Duration.Companion.days
64-
import kotlin.time.Duration.Companion.hours
6564
import kotlin.time.Duration.Companion.minutes
6665
import kotlin.time.Duration.Companion.seconds
6766
import kotlin.time.toKotlinDuration
@@ -235,7 +234,7 @@ class ServiceUserRepository : UserRepository {
235234
}
236235

237236
override fun hasPendingUpdates(): Boolean = runBlocking(Dispatchers.Default) {
238-
userCache.isStale(1.hours)
237+
userCache.isStale()
239238
}
240239

241240
@Throws(IOException::class)

0 commit comments

Comments
 (0)