Skip to content

Commit 5adb135

Browse files
committed
fix(fc): ensure polling can happen every 10s
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent e029e2e commit 5adb135

File tree

1 file changed

+1
-1
lines changed
  • services/flipchat/payments/src/main/kotlin/com/getcode/network/client

1 file changed

+1
-1
lines changed

services/flipchat/payments/src/main/kotlin/com/getcode/network/client/Client.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Client @Inject constructor(
6262
pollTimer = fixedRateTimer("pollTimer", false, 0, 1000 * 10) {
6363
scope.launch {
6464
val time = System.currentTimeMillis()
65-
val isPastThrottle = time - lastPoll > 1000 * 30 || lastPoll == 0L
65+
val isPastThrottle = time - lastPoll > 1000 * 10 || lastPoll == 0L
6666

6767
if (userManager.authState is AuthState.LoggedIn && isPastThrottle) {
6868
Timber.tag(TAG).i("Timer Polling")

0 commit comments

Comments
 (0)