Read API version during service initialization rather than during first request [DPP-948] (#14455)

CHANGELOG_BEGIN
CHANGELOG_END
This commit is contained in:
Sergey Kisel 2022-07-19 09:45:52 +02:00 committed by GitHub
parent df139c6eb1
commit c8400d820a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(