From c8400d820a27efd21acb90c4a36a80df8256f93b Mon Sep 17 00:00:00 2001 From: Sergey Kisel <98825453+skisel-da@users.noreply.github.com> Date: Tue, 19 Jul 2022 09:45:52 +0200 Subject: [PATCH] Read API version during service initialization rather than during first request [DPP-948] (#14455) CHANGELOG_BEGIN CHANGELOG_END --- .../scala/platform/apiserver/services/ApiVersionService.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger/participant-integration-api/src/main/scala/platform/apiserver/services/ApiVersionService.scala b/ledger/participant-integration-api/src/main/scala/platform/apiserver/services/ApiVersionService.scala index f6f6ce7d71a..9bf27343236 100644 --- a/ledger/participant-integration-api/src/main/scala/platform/apiserver/services/ApiVersionService.scala +++ b/ledger/participant-integration-api/src/main/scala/platform/apiserver/services/ApiVersionService.scala @@ -45,7 +45,7 @@ private[apiserver] final class ApiVersionService private ( new DamlContextualizedErrorLogger(logger, loggingContext, None) private val versionFile: String = "ledger-api/VERSION" - private lazy val apiVersion: Try[String] = readVersion(versionFile) + private val apiVersion: Try[String] = readVersion(versionFile) private val featuresDescriptor = FeaturesDescriptor.of(