From 54eb7515d3dce37fd800e70757eec4285445fe03 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 13 Aug 2023 00:02:19 +0600 Subject: [PATCH] small fixes in repos --- .../commonMain/kotlin/repos/CachedPollsToMessagesInfoRepo.kt | 5 ++--- .../src/commonMain/kotlin/repos/CachedPollsToPostsIdsRepo.kt | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ratings/source/src/commonMain/kotlin/repos/CachedPollsToMessagesInfoRepo.kt b/ratings/source/src/commonMain/kotlin/repos/CachedPollsToMessagesInfoRepo.kt index dce3942..21c225a 100644 --- a/ratings/source/src/commonMain/kotlin/repos/CachedPollsToMessagesInfoRepo.kt +++ b/ratings/source/src/commonMain/kotlin/repos/CachedPollsToMessagesInfoRepo.kt @@ -1,9 +1,8 @@ package dev.inmo.plaguposter.ratings.source.repos import dev.inmo.micro_utils.repos.KeyValueRepo -import dev.inmo.micro_utils.repos.cache.KeyValueCacheRepo import dev.inmo.micro_utils.repos.cache.cache.FullKVCache -import dev.inmo.micro_utils.repos.cache.full.cached +import dev.inmo.micro_utils.repos.cache.full.fullyCached import dev.inmo.plaguposter.common.ShortMessageInfo import dev.inmo.tgbotapi.types.PollIdentifier import kotlinx.coroutines.CoroutineScope @@ -12,4 +11,4 @@ class CachedPollsToMessagesInfoRepo( private val repo: PollsToMessagesInfoRepo, private val scope: CoroutineScope, private val kvCache: FullKVCache = FullKVCache() -) : PollsToMessagesInfoRepo, KeyValueRepo by repo.cached(kvCache, scope) +) : PollsToMessagesInfoRepo, KeyValueRepo by repo.fullyCached(kvCache, scope) diff --git a/ratings/source/src/commonMain/kotlin/repos/CachedPollsToPostsIdsRepo.kt b/ratings/source/src/commonMain/kotlin/repos/CachedPollsToPostsIdsRepo.kt index 220eb51..9166181 100644 --- a/ratings/source/src/commonMain/kotlin/repos/CachedPollsToPostsIdsRepo.kt +++ b/ratings/source/src/commonMain/kotlin/repos/CachedPollsToPostsIdsRepo.kt @@ -2,8 +2,7 @@ package dev.inmo.plaguposter.ratings.source.repos import dev.inmo.micro_utils.repos.KeyValueRepo import dev.inmo.micro_utils.repos.cache.cache.FullKVCache -import dev.inmo.micro_utils.repos.cache.full.cached -import dev.inmo.plaguposter.common.ShortMessageInfo +import dev.inmo.micro_utils.repos.cache.full.fullyCached import dev.inmo.plaguposter.posts.models.PostId import dev.inmo.tgbotapi.types.PollIdentifier import kotlinx.coroutines.CoroutineScope @@ -12,4 +11,4 @@ class CachedPollsToPostsIdsRepo( private val repo: PollsToPostsIdsRepo, private val scope: CoroutineScope, private val kvCache: FullKVCache = FullKVCache() -) : PollsToPostsIdsRepo, KeyValueRepo by repo.cached(kvCache, scope) +) : PollsToPostsIdsRepo, KeyValueRepo by repo.fullyCached(kvCache, scope)