Skip to content

Commit

Permalink
fix: align max time between heartbeats with iOS: 15 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Oct 26, 2023
1 parent 0e6bec8 commit 210bf32
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.parsely.parselyandroid
import java.util.Calendar
import kotlin.time.Duration.Companion.hours
import kotlin.time.Duration.Companion.milliseconds
import kotlin.time.Duration.Companion.minutes
import kotlin.time.Duration.Companion.seconds

internal open class HeartbeatIntervalCalculator(private val clock: Clock) {
Expand All @@ -21,6 +22,6 @@ internal open class HeartbeatIntervalCalculator(private val clock: Clock) {
companion object {
const val BACKOFF_PROPORTION = 0.3
val OFFSET_MATCHING_BASE_INTERVAL = 35.seconds
val MAX_TIME_BETWEEN_HEARTBEATS = 1.hours
val MAX_TIME_BETWEEN_HEARTBEATS = 15.minutes
}
}

0 comments on commit 210bf32

Please sign in to comment.