Updated on 2026-08-14

This commit is contained in:
Tangem 2024-10-16 11:59:34 +03:00
parent e77c292230
commit 42806a4d7c
4 changed files with 26 additions and 9 deletions

View file

@ -39,10 +39,6 @@ internal class DefaultBlockchainSDKFactory(
private val mainScope = CoroutineScope(dispatchers.main)
private val walletManagerFactory: Flow<WalletManagerFactory?> = createWalletManagerFactory()
// TODO: [REDACTED_JIRA]
// private val walletManagerFactory: Flow<WalletManagerFactory?> by lazy(LazyThreadSafetyMode.NONE) {
// createWalletManagerFactory()
// }
override suspend fun init() {
coroutineScope {
@ -59,7 +55,7 @@ internal class DefaultBlockchainSDKFactory(
// flow3 = subscribe on feature toggles changes, TODO: [REDACTED_JIRA]
transform = walletManagerFactoryCreator::create,
)
.stateIn(scope = mainScope, started = SharingStarted.Eagerly, initialValue = null)
.stateIn(scope = mainScope, started = SharingStarted.Lazily, initialValue = null)
}
private fun CoroutineScope.updateBlockchainProviderTypes() {