File tree Expand file tree Collapse file tree 4 files changed +4
-2
lines changed
model-client/src/jvmMain/kotlin/org/modelix/model/client
model-datastructure/src/commonMain/kotlin/org/modelix/model
model-server/src/main/kotlin/org/modelix/model/server/handlers Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ class RestWebModelClient @JvmOverloads constructor(
371371 return runBlocking { getA(key) }
372372 }
373373
374- suspend fun getA (key : String ): String? {
374+ override suspend fun getA (key : String ): String? {
375375 val isHash = HashUtil .isSha256(key)
376376 if (isHash) {
377377 if (LOG .isDebugEnabled) {
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ abstract class VersionChangeDetector(
6969 store.listen(key, keyListener)
7070 while (isActive) {
7171 try {
72- val version = store[ key]
72+ val version = store.getA( key)
7373 if (version != lastVersionHash) {
7474 LOG .debug { " New version detected by polling: $version " }
7575 versionChanged(version)
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ package org.modelix.model
1717
1818interface IKeyValueStore {
1919 operator fun get (key : String ): String?
20+ suspend fun getA (key : String ): String? = get(key)
2021 fun put (key : String , value : String? )
2122 fun getAll (keys : Iterable <String >): Map <String , String ?>
2223 fun putAll (entries : Map <String , String ?>)
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ class RepositoriesManager(val client: LocalModelClient) {
165165 mergedVersion.hash
166166 }
167167 putVersionHash(branch, mergedHash)
168+ ensureRepositoriesAreInList(setOf (branch.repositoryId))
168169 ensureBranchesAreInList(branch.repositoryId, setOf (branch.branchName))
169170 result = mergedHash
170171 }
You can’t perform that action at this time.
0 commit comments