diff --git a/services.py b/router.py similarity index 100% rename from services.py rename to router.py diff --git a/tasks.py b/tasks.py index 813a337..40ca9d9 100644 --- a/tasks.py +++ b/tasks.py @@ -4,7 +4,7 @@ import threading from . import nostr from .crud import get_relays from .nostr.message_pool import EndOfStoredEventsMessage, EventMessage, NoticeMessage -from .services import NostrRouter, nostr +from .router import NostrRouter, nostr async def init_relays(): diff --git a/views_api.py b/views_api.py index 060fcc7..316ec4d 100644 --- a/views_api.py +++ b/views_api.py @@ -14,7 +14,7 @@ from .crud import add_relay, delete_relay, get_relays from .helpers import normalize_public_key from .models import Relay, RelayList, TestMessage, TestMessageResponse from .nostr.key import EncryptedDirectMessage, PrivateKey -from .services import NostrRouter, nostr +from .router import NostrRouter, nostr # we keep this in all_routers: list[NostrRouter] = []