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