Merge branch 'main' into resusbscribe_on_add

This commit is contained in:
callebtc 2023-04-11 15:48:07 +02:00
commit a37b4f01d5
8 changed files with 46 additions and 29 deletions

View file

@ -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 = {}