From 8c1b468eb0d4b0d41de4162cc9a84ce69f206ba5 Mon Sep 17 00:00:00 2001 From: cybermaggedon Date: Tue, 17 Dec 2024 12:43:16 +0000 Subject: [PATCH] Fix async error (#212) --- trustgraph-flow/trustgraph/gateway/endpoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trustgraph-flow/trustgraph/gateway/endpoint.py b/trustgraph-flow/trustgraph/gateway/endpoint.py index 6d6ca8d5..1f38c489 100644 --- a/trustgraph-flow/trustgraph/gateway/endpoint.py +++ b/trustgraph-flow/trustgraph/gateway/endpoint.py @@ -53,10 +53,10 @@ async def handle(self, request): print(data) - def responder(x, fin): + async def responder(x, fin): print(x) - resp, fin = await self.requestor.process(data, responder) + resp = await self.requestor.process(data, responder) return web.json_response(resp)