Remove refresh scope from Clock
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-08-17 02:08:12 +02:00
parent 56c6fef178
commit 59982ef762
@@ -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)
}