Updated on 2026-08-14
This commit is contained in:
parent
acf110dbcc
commit
6910f74fd9
242 changed files with 866 additions and 732 deletions
|
|
@ -101,12 +101,12 @@ class DefaultTxHistoryRepository(
|
|||
userWalletId: UserWalletId,
|
||||
currency: CryptoCurrency,
|
||||
pageSize: Int,
|
||||
refresh: Boolean,
|
||||
shouldRefresh: Boolean,
|
||||
): List<TxInfo> = withContext(dispatchers.io) {
|
||||
try {
|
||||
cacheRegistry.invokeOnExpire(
|
||||
key = getTxHistoryPageKey(currency, userWalletId, Page.Initial),
|
||||
skipCache = refresh,
|
||||
skipCache = shouldRefresh,
|
||||
block = { fetchFixedSizeTxHistoryItems(userWalletId, currency, pageSize) },
|
||||
)
|
||||
val txs = txHistoryItemsStore.getSyncOrNull(
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ internal class RefactoredTxHistoryRepository(
|
|||
): PaginationWrapper<TxInfo> {
|
||||
cacheRegistry.invokeOnExpire(
|
||||
key = getTxHistoryPageKey(request.page, request.params),
|
||||
skipCache = request.params.refresh,
|
||||
skipCache = request.params.shouldRefresh,
|
||||
block = { fetch(request, batchSize) },
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue