Idx -> Index

This commit is contained in:
Benoit Marty 2023-06-23 15:20:19 +02:00 committed by Benoit Marty
parent 4297cfac24
commit 145cd410c7
5 changed files with 17 additions and 17 deletions

View file

@ -58,7 +58,7 @@ class RustMatrixAuthenticationService @Inject constructor(
private val clock: SystemClock,
) : MatrixAuthenticationService {
private val cacheIdxState = MutableStateFlow(0)
private val cacheIndexState = MutableStateFlow(0)
private val authService: RustAuthenticationService = RustAuthenticationService(
basePath = baseDirectory.absolutePath,
@ -73,12 +73,12 @@ class RustMatrixAuthenticationService @Inject constructor(
return sessionStore.isLoggedIn()
}
override fun incrementCacheIdx() {
cacheIdxState.value++
override fun incrementCacheIndex() {
cacheIndexState.value++
}
override fun cacheIdx(): Flow<Int> {
return cacheIdxState
override fun cacheIndex(): Flow<Int> {
return cacheIndexState
}
override suspend fun getLatestSessionId(): SessionId? = withContext(coroutineDispatchers.io) {