refactor: rename services to router

This commit is contained in:
Vlad Stan 2023-06-23 11:18:09 +03:00
parent 99022f2b4a
commit e04629db22
3 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ import threading
from . import nostr from . import nostr
from .crud import get_relays from .crud import get_relays
from .nostr.message_pool import EndOfStoredEventsMessage, EventMessage, NoticeMessage from .nostr.message_pool import EndOfStoredEventsMessage, EventMessage, NoticeMessage
from .services import NostrRouter, nostr from .router import NostrRouter, nostr
async def init_relays(): async def init_relays():

View file

@ -14,7 +14,7 @@ from .crud import add_relay, delete_relay, get_relays
from .helpers import normalize_public_key from .helpers import normalize_public_key
from .models import Relay, RelayList, TestMessage, TestMessageResponse from .models import Relay, RelayList, TestMessage, TestMessageResponse
from .nostr.key import EncryptedDirectMessage, PrivateKey from .nostr.key import EncryptedDirectMessage, PrivateKey
from .services import NostrRouter, nostr from .router import NostrRouter, nostr
# we keep this in # we keep this in
all_routers: list[NostrRouter] = [] all_routers: list[NostrRouter] = []