fix filter

This commit is contained in:
callebtc
2023-02-07 23:11:43 +01:00
parent 6d5e2b3056
commit 5054fea937
2 changed files with 1 additions and 3 deletions

View File

@@ -34,7 +34,6 @@ async def dm():
args=( args=(
client.public_key, client.public_key,
callback, callback,
filters,
), ),
) )
t.start() t.start()

View File

@@ -21,7 +21,7 @@ from . import cbc
class NostrClient: class NostrClient:
relays = [ relays = [
"wss://relay.snort.social", # "wss://relay.snort.social",
"wss://nostr-pub.wellorder.net", "wss://nostr-pub.wellorder.net",
"wss://nostr.zebedee.cloud", "wss://nostr.zebedee.cloud",
"wss://nostr.mom", "wss://nostr.mom",
@@ -103,7 +103,6 @@ class NostrClient:
) )
] ]
) )
filters = Filters([filter])
subscription_id = os.urandom(4).hex() subscription_id = os.urandom(4).hex()
self.relay_manager.add_subscription(subscription_id, filters) self.relay_manager.add_subscription(subscription_id, filters)