chore: code clean-up
This commit is contained in:
parent
811bfdc45a
commit
defb9b8963
2 changed files with 1 additions and 10 deletions
|
|
@ -6,12 +6,7 @@ from ..subscription import Subscription
|
|||
|
||||
|
||||
class NostrClient:
|
||||
relays = [
|
||||
"wss://nostr-pub.wellorder.net",
|
||||
"wss://nostr.zebedee.cloud",
|
||||
"wss://nodestr.fmt.wiz.biz",
|
||||
"wss://nostr.oxtr.dev",
|
||||
]
|
||||
relays = [ ]
|
||||
relay_manager = RelayManager()
|
||||
|
||||
def __init__(self, relays: List[str] = [], connect=True):
|
||||
|
|
@ -24,8 +19,6 @@ class NostrClient:
|
|||
for relay in self.relays:
|
||||
self.relay_manager.add_relay(relay)
|
||||
|
||||
|
||||
|
||||
def close(self):
|
||||
self.relay_manager.close_connections()
|
||||
|
||||
|
|
|
|||
2
tasks.py
2
tasks.py
|
|
@ -1,6 +1,4 @@
|
|||
import asyncio
|
||||
import json
|
||||
import ssl
|
||||
import threading
|
||||
|
||||
from .crud import get_relays
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue