Merge branch 'main' into resusbscribe_on_add
This commit is contained in:
commit
a37b4f01d5
8 changed files with 46 additions and 29 deletions
6
tasks.py
6
tasks.py
|
|
@ -3,20 +3,18 @@ import ssl
|
|||
import json
|
||||
import threading
|
||||
|
||||
from .crud import get_relays
|
||||
from .nostr.event import Event
|
||||
from .nostr.key import PublicKey
|
||||
from .nostr.message_pool import EndOfStoredEventsMessage, EventMessage, NoticeMessage
|
||||
from .nostr.relay_manager import RelayManager
|
||||
from .services import (
|
||||
nostr,
|
||||
received_subscription_events,
|
||||
received_subscription_eosenotices,
|
||||
received_subscription_events,
|
||||
)
|
||||
|
||||
|
||||
from .crud import get_relays
|
||||
|
||||
|
||||
async def init_relays():
|
||||
# we save any subscriptions teporarily to re-add them after reinitializing the client
|
||||
subscriptions = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue