Skip to content

Commit

Permalink
Fixed category state issue on SearchScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
rygelouv committed Jan 5, 2024
1 parent 3d321c6 commit aa3f9c8
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import app.books.tanga.entity.Summary
import app.books.tanga.entity.SummaryId
import app.books.tanga.utils.resultOf
import javax.inject.Inject
import kotlinx.coroutines.delay

class SummaryInteractor @Inject constructor(
private val summaryRepository: SummaryRepository,
Expand Down Expand Up @@ -71,7 +70,6 @@ class SummaryInteractor @Inject constructor(
* Once the summaries are retrieved from the repository, save them in the in memory cache
*/
suspend fun getAllSummaries(): Result<List<Summary>> {
delay(3000)
val summaries = summaryRepository.getAllSummaries()
summaryRepository.saveSummariesInMemoryCache(summaries.getOrNull() ?: emptyList())
return summaries
Expand Down

0 comments on commit aa3f9c8

Please sign in to comment.