no need for the scope on the cache connector

This commit is contained in:
Vitor Pamplona
2025-08-15 09:18:42 -04:00
parent 529a1f403e
commit 1392833179
2 changed files with 1 additions and 3 deletions

View File

@@ -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)

View File

@@ -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 ->