feat: add internal_invoice_queue_put to get rid of dynamic import (#3223)

This commit is contained in:
dni ⚡
2025-07-08 10:17:21 +02:00
parent 695e9b6471
commit 26eb7a449c
2 changed files with 9 additions and 4 deletions
+7
View File
@@ -107,6 +107,13 @@ def register_invoice_listener(send_chan: asyncio.Queue, name: Optional[str] = No
internal_invoice_queue: asyncio.Queue = asyncio.Queue(0)
async def internal_invoice_queue_put(checking_id: str) -> None:
"""
A method to call when it wants to notify about an internal invoice payment.
"""
await internal_invoice_queue.put(checking_id)
async def internal_invoice_listener() -> None:
"""
internal_invoice_queue will be filled directly in core/services.py