mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
Update scope to use Unconfined (#421)
This commit is contained in:
parent
6f85a6eb75
commit
21f51c90ad
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ class NetworkConfigManagerImpl(
|
|||
dispatcherManager: DispatcherManager,
|
||||
) : NetworkConfigManager {
|
||||
|
||||
private val scope = CoroutineScope(dispatcherManager.io)
|
||||
private val collectionScope = CoroutineScope(dispatcherManager.unconfined)
|
||||
|
||||
init {
|
||||
authRepository
|
||||
|
@ -35,14 +35,14 @@ class NetworkConfigManagerImpl(
|
|||
is AuthState.Uninitialized -> null
|
||||
}
|
||||
}
|
||||
.launchIn(scope)
|
||||
.launchIn(collectionScope)
|
||||
|
||||
environmentRepository
|
||||
.environmentStateFlow
|
||||
.onEach { environment ->
|
||||
baseUrlInterceptors.environment = environment
|
||||
}
|
||||
.launchIn(scope)
|
||||
.launchIn(collectionScope)
|
||||
|
||||
refreshAuthenticator.authenticatorProvider = authRepository
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue