Skip to content

Commit

Permalink
Autopoll cache expiration (#48)
Browse files Browse the repository at this point in the history
* Update auto poll correction time.

* Prepare 4.1.1 release

* Update src/commonMain/kotlin/com/configcat/ConfigService.kt

Co-authored-by: Peter Csajtai <[email protected]>

---------

Co-authored-by: Peter Csajtai <[email protected]>
  • Loading branch information
novalisdenahi and z4kn4fein authored Dec 22, 2024
1 parent 1ad4091 commit 4a0720e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=com.configcat
version=4.1.0
version=4.1.1

ktorVersion=3.0.0
kotlinxSerializationVersion=1.7.3
Expand Down
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/com/configcat/ConfigService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ internal class ConfigService(
while (isActive) {
fetchIfOlder(
DateTime.now()
.add(0, -mode.configuration.pollingInterval.inWholeMilliseconds.toDouble()),
.add(0, -(mode.configuration.pollingInterval.inWholeMilliseconds.toDouble() - 500)),
)
delay(mode.configuration.pollingInterval)
}
Expand Down
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/com/configcat/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal interface Closeable {
}

internal object Constants {
const val VERSION: String = "4.1.0"
const val VERSION: String = "4.1.1"
const val CONFIG_FILE_NAME: String = "config_v6.json"
const val SERIALIZATION_FORMAT_VERSION: String = "v2"
const val GLOBAL_CDN_URL = "https://cdn-global.configcat.com"
Expand Down

0 comments on commit 4a0720e

Please sign in to comment.