From d668cee395201869011646d5615545ad945fb473 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Mon, 27 Dec 2021 23:33:50 +0100 Subject: Upgrade dependencies --- gradle/libs.versions.toml | 14 +++++++------- .../org/luxons/sevenwonders/client/SevenWondersClient.kt | 6 ++++-- sw-server/src/main/resources/logback-spring.xml | 11 ++++------- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index aeefd17c..21bc54b6 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,11 +1,11 @@ [versions] -kotlinx-coroutines = "1.5.2" -kotlinx-serialization = "1.3.1" -krossbow = "2.7.0" -logback-classic = "1.2.3" -loki-logback-appender = "1.0.0" -micrometer-registry-prometheus = "1.6.1" -slf4j = "1.7.30" +kotlinx-coroutines = "1.6.0" +kotlinx-serialization = "1.3.2" +krossbow = "3.0.0" +logback-classic = "1.2.10" +loki-logback-appender = "1.3.1" +micrometer-registry-prometheus = "1.8.1" +slf4j = "1.7.32" # See https://github.com/JetBrains/kotlin-wrappers kotlin-react = "17.0.2-pre.266-kotlin-1.6.0" diff --git a/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt b/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt index f11439ef..b0dfdee2 100644 --- a/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt +++ b/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt @@ -23,12 +23,14 @@ import org.luxons.sevenwonders.model.api.actions.* import org.luxons.sevenwonders.model.api.errors.ErrorDTO import org.luxons.sevenwonders.model.api.events.* import org.luxons.sevenwonders.model.wonders.AssignedWonder +import kotlin.time.Duration +import kotlin.time.Duration.Companion.seconds class SevenWondersClient { private val stompClient = StompClient { - heartBeat = HeartBeat(10000, 10000) - heartBeatTolerance = HeartBeatTolerance(0, 10000) // wide margin to account for heroku cold start + heartBeat = HeartBeat(10.seconds, 10.seconds) + heartBeatTolerance = HeartBeatTolerance(Duration.ZERO, 10.seconds) // wide margin to account for heroku cold start } suspend fun connect(serverUrl: String): SevenWondersSession { diff --git a/sw-server/src/main/resources/logback-spring.xml b/sw-server/src/main/resources/logback-spring.xml index 07b9e58e..afb338bd 100644 --- a/sw-server/src/main/resources/logback-spring.xml +++ b/sw-server/src/main/resources/logback-spring.xml @@ -2,14 +2,11 @@ - - - 1 + + + 65536 10000 + true https://logs-prod-us-central1.grafana.net/loki/api/v1/push -- cgit