refactor: code smell runBlocking inside an OkHttp Interceptor

This commit is contained in:
2026-06-12 12:03:36 +02:00
parent 98bc466edd
commit aaadd0d73f
5 changed files with 72 additions and 32 deletions
@@ -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()