Skip to content

Commit 32724f0

Browse files
committed
Refactor: use async sessions factory instead of sync
1 parent 06030dc commit 32724f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aleph/network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from aleph.services.ipfs.pubsub import incoming_channel as incoming_ipfs_channel
1414
from aleph.services.storage.fileystem_engine import FileSystemStorageEngine
1515
from aleph.storage import StorageService
16-
from aleph.types.db_session import DbSessionFactory
16+
from aleph.types.db_session import AsyncDbSessionFactory
1717
from aleph.types.message_status import InvalidMessageFormat
1818

1919
LOGGER = logging.getLogger(__name__)
@@ -38,7 +38,7 @@ async def decode_pubsub_message(message_data: bytes) -> Dict[str, Any]:
3838

3939
async def listener_tasks(
4040
config,
41-
session_factory: DbSessionFactory,
41+
session_factory: AsyncDbSessionFactory,
4242
node_cache: NodeCache,
4343
p2p_client: AlephP2PServiceClient,
4444
mq_channel: aio_pika.abc.AbstractChannel,

0 commit comments

Comments
 (0)