refactor: code smell runBlocking inside an OkHttp Interceptor
This commit is contained in:
@@ -18,8 +18,8 @@ class GudariWalletApplication : Application(), Configuration.Provider {
|
||||
override val workManagerConfiguration: Configuration
|
||||
get() {
|
||||
val secrets = EncryptedSecretStore(this)
|
||||
val api = LNbitsClient.create(secrets)
|
||||
val repo = LNbitsWalletRepository(api = api, secrets = secrets)
|
||||
val client = LNbitsClient(secrets)
|
||||
val repo = LNbitsWalletRepository(api = client.api, secrets = secrets)
|
||||
val paymentCache = PaymentCacheRepository(this)
|
||||
val syncStore = HistoricalSyncStore(this)
|
||||
return Configuration.Builder()
|
||||
|
||||
Reference in New Issue
Block a user