Updated on 2026-08-14

This commit is contained in:
Tangem 2023-09-29 18:17:28 +03:00
parent 324f365771
commit b91efa6730
10 changed files with 29 additions and 31 deletions

View file

@ -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()