Updated on 2026-08-14
This commit is contained in:
parent
389bcd062f
commit
567cb766ad
2 changed files with 5 additions and 7 deletions
|
|
@ -48,10 +48,8 @@ import dagger.hilt.android.lifecycle.HiltViewModel
|
|||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.flow.*
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.withTimeout
|
||||
import timber.log.Timber
|
||||
import javax.inject.Inject
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
|
||||
@Suppress("LongParameterList", "LargeClass")
|
||||
@HiltViewModel
|
||||
|
|
@ -138,10 +136,7 @@ internal class MainViewModel @Inject constructor(
|
|||
viewModelScope.launch {
|
||||
launchAPIRequests {
|
||||
launch { blockchainSDKFactory.init() }
|
||||
|
||||
launch {
|
||||
withTimeout(timeMillis = 1.seconds.inWholeMilliseconds) { fetchUserCountry() }
|
||||
}
|
||||
launch { fetchUserCountry() }
|
||||
}
|
||||
|
||||
subscribeToSelectedWallet()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue