mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-02 20:44:57 +02:00
no need for the scope on the cache connector
This commit is contained in:
@@ -112,7 +112,7 @@ class Amethyst : Application() {
|
|||||||
val relayProxyClientConnector = RelayProxyClientConnector(torProxySettingsAnchor, okHttpClients, connManager, client, applicationIOScope)
|
val relayProxyClientConnector = RelayProxyClientConnector(torProxySettingsAnchor, okHttpClients, connManager, client, applicationIOScope)
|
||||||
|
|
||||||
// Verifies and inserts in the cache from all relays, all subscriptions
|
// 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
|
// Show messages from the Relay and controls their dismissal
|
||||||
val notifyCoordinator = NotifyCoordinator(client)
|
val notifyCoordinator = NotifyCoordinator(client)
|
||||||
|
@@ -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.EventCollector
|
||||||
import com.vitorpamplona.quartz.nip01Core.relay.client.accessories.RelayInsertConfirmationCollector
|
import com.vitorpamplona.quartz.nip01Core.relay.client.accessories.RelayInsertConfirmationCollector
|
||||||
import com.vitorpamplona.quartz.nip01Core.relay.normalizer.NormalizedRelayUrl
|
import com.vitorpamplona.quartz.nip01Core.relay.normalizer.NormalizedRelayUrl
|
||||||
import kotlinx.coroutines.CoroutineScope
|
|
||||||
|
|
||||||
class CacheClientConnector(
|
class CacheClientConnector(
|
||||||
val client: NostrClient,
|
val client: NostrClient,
|
||||||
val cache: LocalCache,
|
val cache: LocalCache,
|
||||||
val scope: CoroutineScope,
|
|
||||||
) {
|
) {
|
||||||
val receiver =
|
val receiver =
|
||||||
EventCollector(client) { event, relay ->
|
EventCollector(client) { event, relay ->
|
||||||
|
Reference in New Issue
Block a user