Skip to content

Commit f9ea515

Browse files
committed
refactor(model-server): reduce visibilities in KeyValueLikeModelServer
1 parent 5abdee8 commit f9ea515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model-server/src/main/kotlin/org/modelix/model/server/handlers/KeyValueLikeModelServer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class KeyValueLikeModelServer(
293293
return result
294294
}
295295

296-
protected suspend fun CallContext.putEntries(newEntries: Map<String, String?>) {
296+
private suspend fun CallContext.putEntries(newEntries: Map<String, String?>) {
297297
val referencedKeys: MutableSet<String> = HashSet()
298298
for ((key, value) in newEntries) {
299299
checkKeyPermission(key, EPermissionType.WRITE)
@@ -395,7 +395,7 @@ class KeyValueLikeModelServer(
395395
call.checkPermission(MODEL_SERVER_ENTRY.createInstance(key), type.toKeycloakScope())
396396
}
397397

398-
fun isHealthy(): Boolean {
398+
private fun isHealthy(): Boolean {
399399
val value = toLong(storeClient[HEALTH_KEY]) + 1
400400
storeClient.put(HEALTH_KEY, java.lang.Long.toString(value))
401401
return toLong(storeClient[HEALTH_KEY]) >= value

0 commit comments

Comments
 (0)