refactor: move client-manager
This commit is contained in:
parent
818072fe29
commit
c46c903703
3 changed files with 5 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ from loguru import logger
|
||||||
|
|
||||||
from lnbits.helpers import urlsafe_short_hash
|
from lnbits.helpers import urlsafe_short_hash
|
||||||
|
|
||||||
from .crud import (
|
from ..crud import (
|
||||||
create_event,
|
create_event,
|
||||||
delete_events,
|
delete_events,
|
||||||
get_account,
|
get_account,
|
||||||
|
|
@ -18,8 +18,8 @@ from .crud import (
|
||||||
mark_events_deleted,
|
mark_events_deleted,
|
||||||
prune_old_events,
|
prune_old_events,
|
||||||
)
|
)
|
||||||
from .helpers import extract_domain
|
from ..helpers import extract_domain
|
||||||
from .models import NostrAccount, NostrEvent, NostrEventType, NostrFilter, RelaySpec
|
from ..models import NostrAccount, NostrEvent, NostrEventType, NostrFilter, RelaySpec
|
||||||
|
|
||||||
|
|
||||||
class NostrClientManager:
|
class NostrClientManager:
|
||||||
|
|
@ -6,7 +6,7 @@ import pytest
|
||||||
from fastapi import WebSocket
|
from fastapi import WebSocket
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
from lnbits.extensions.nostrrelay.client_manager import ( # type: ignore
|
from lnbits.extensions.nostrrelay.relay.client_manager import ( # type: ignore
|
||||||
NostrClientConnection,
|
NostrClientConnection,
|
||||||
NostrClientManager,
|
NostrClientManager,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ from lnbits.decorators import (
|
||||||
from lnbits.helpers import urlsafe_short_hash
|
from lnbits.helpers import urlsafe_short_hash
|
||||||
|
|
||||||
from . import nostrrelay_ext
|
from . import nostrrelay_ext
|
||||||
from .client_manager import NostrClientConnection, NostrClientManager
|
from .relay.client_manager import NostrClientConnection, NostrClientManager
|
||||||
from .crud import (
|
from .crud import (
|
||||||
create_account,
|
create_account,
|
||||||
create_relay,
|
create_relay,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue