From 59982ef7628a90d7ffcfadd5c91fd66f490b9f10 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 17 Aug 2023 02:08:12 +0200 Subject: [PATCH] Remove refresh scope from Clock --- .../de/twomartens/wahlrecht/configuration/ClockConfiguration.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/ClockConfiguration.kt b/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/ClockConfiguration.kt index 7ef1250..8aa2587 100644 --- a/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/ClockConfiguration.kt +++ b/module-server/src/main/kotlin/de/twomartens/wahlrecht/configuration/ClockConfiguration.kt @@ -1,7 +1,6 @@ package de.twomartens.wahlrecht.configuration import de.twomartens.wahlrecht.property.ServiceProperties -import org.springframework.cloud.context.config.annotation.RefreshScope import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import java.time.Clock @@ -10,7 +9,6 @@ import java.time.Clock open class ClockConfiguration(private val serviceProperties: ServiceProperties) { @Bean - @RefreshScope open fun clock(): Clock { return Clock.system(serviceProperties.defaultTimeZone) }