Updated on 2026-08-14

This commit is contained in:
Tangem 2023-10-02 12:45:20 +03:00
parent 56590d9345
commit f6c6c5faed
6 changed files with 27 additions and 29 deletions

View file

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