Updated on 2026-08-14
This commit is contained in:
parent
56590d9345
commit
f6c6c5faed
6 changed files with 27 additions and 29 deletions
|
|
@ -40,7 +40,6 @@ internal class DefaultNetworksRepository(
|
|||
override fun getNetworkStatusesUpdates(
|
||||
userWalletId: UserWalletId,
|
||||
networks: Set<Network>,
|
||||
refresh: Boolean,
|
||||
): Flow<Set<NetworkStatus>> = channelFlow {
|
||||
launch(dispatchers.io) {
|
||||
networksStatusesStore.get(userWalletId)
|
||||
|
|
@ -48,7 +47,7 @@ internal class DefaultNetworksRepository(
|
|||
}
|
||||
|
||||
withContext(dispatchers.io) {
|
||||
fetchNetworksStatusesIfCacheExpired(userWalletId, networks, refresh)
|
||||
fetchNetworksStatusesIfCacheExpired(userWalletId, networks, false)
|
||||
}
|
||||
}.cancellable()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue