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(
371
371
return runBlocking { getA(key) }
372
372
}
373
373
374
- suspend fun getA (key : String ): String? {
374
+ override suspend fun getA (key : String ): String? {
375
375
val isHash = HashUtil .isSha256(key)
376
376
if (isHash) {
377
377
if (LOG .isDebugEnabled) {
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ abstract class VersionChangeDetector(
69
69
store.listen(key, keyListener)
70
70
while (isActive) {
71
71
try {
72
- val version = store[ key]
72
+ val version = store.getA( key)
73
73
if (version != lastVersionHash) {
74
74
LOG .debug { " New version detected by polling: $version " }
75
75
versionChanged(version)
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ package org.modelix.model
17
17
18
18
interface IKeyValueStore {
19
19
operator fun get (key : String ): String?
20
+ suspend fun getA (key : String ): String? = get(key)
20
21
fun put (key : String , value : String? )
21
22
fun getAll (keys : Iterable <String >): Map <String , String ?>
22
23
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) {
165
165
mergedVersion.hash
166
166
}
167
167
putVersionHash(branch, mergedHash)
168
+ ensureRepositoriesAreInList(setOf (branch.repositoryId))
168
169
ensureBranchesAreInList(branch.repositoryId, setOf (branch.branchName))
169
170
result = mergedHash
170
171
}
You can’t perform that action at this time.
0 commit comments