From 6699ff9bfe699a64a5aa001a87656aed3e51a910 Mon Sep 17 00:00:00 2001 From: Cyber MacGeddon Date: Tue, 17 Dec 2024 12:42:33 +0000 Subject: [PATCH] Fix async error --- 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 @@ class ServiceEndpoint: 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)