mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-23 04:01:02 +02:00
Fix callable error
This commit is contained in:
parent
d93d1896c0
commit
d156b2ae16
1 changed files with 6 additions and 0 deletions
|
|
@ -19,6 +19,12 @@ class WebSocketResponder:
|
||||||
self.response = data
|
self.response = data
|
||||||
self.completed = True
|
self.completed = True
|
||||||
|
|
||||||
|
async def __call__(self, data, final=False):
|
||||||
|
"""Make the responder callable for compatibility with requestor"""
|
||||||
|
await self.send(data)
|
||||||
|
if final:
|
||||||
|
self.completed = True
|
||||||
|
|
||||||
class MessageDispatcher:
|
class MessageDispatcher:
|
||||||
|
|
||||||
def __init__(self, max_workers: int = 10, config_receiver=None, pulsar_client=None):
|
def __init__(self, max_workers: int = 10, config_receiver=None, pulsar_client=None):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue