From 1392833179d78182c1f43be02c8d80787e8ed02c Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 15 Aug 2025 09:18:42 -0400 Subject: [PATCH] no need for the scope on the cache connector --- amethyst/src/main/java/com/vitorpamplona/amethyst/Amethyst.kt | 2 +- .../amethyst/service/relayClient/CacheClientConnector.kt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/Amethyst.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/Amethyst.kt index d115ad178..1129c7773 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/Amethyst.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/Amethyst.kt @@ -112,7 +112,7 @@ class Amethyst : Application() { val relayProxyClientConnector = RelayProxyClientConnector(torProxySettingsAnchor, okHttpClients, connManager, client, applicationIOScope) // Verifies and inserts in the cache from all relays, all subscriptions - val cacheClientConnector = CacheClientConnector(client, cache, applicationIOScope) + val cacheClientConnector = CacheClientConnector(client, cache) // Show messages from the Relay and controls their dismissal val notifyCoordinator = NotifyCoordinator(client) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/relayClient/CacheClientConnector.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/relayClient/CacheClientConnector.kt index 0371fc4fe..24d576b60 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/relayClient/CacheClientConnector.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/relayClient/CacheClientConnector.kt @@ -27,12 +27,10 @@ import com.vitorpamplona.quartz.nip01Core.relay.client.NostrClient import com.vitorpamplona.quartz.nip01Core.relay.client.accessories.EventCollector import com.vitorpamplona.quartz.nip01Core.relay.client.accessories.RelayInsertConfirmationCollector import com.vitorpamplona.quartz.nip01Core.relay.normalizer.NormalizedRelayUrl -import kotlinx.coroutines.CoroutineScope class CacheClientConnector( val client: NostrClient, val cache: LocalCache, - val scope: CoroutineScope, ) { val receiver = EventCollector(client) { event, relay ->