chore: deprecate get_current_extension_name (#2280)

This commit is contained in:
dni ⚡
2024-02-16 13:48:50 +02:00
committed by GitHub
parent 526467747e
commit dc7a6551c5
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -86,6 +86,8 @@ class SseListenersDict(dict):
invoice_listeners: Dict[str, asyncio.Queue] = SseListenersDict("invoice_listeners")
# TODO: name should not be optional
# some extensions still dont use a name, but they should
def register_invoice_listener(send_chan: asyncio.Queue, name: Optional[str] = None):
"""
A method intended for extensions (and core/tasks.py) to call when they want to be