From 5770af51ef61d5464cd275bba503de6a6cd901c0 Mon Sep 17 00:00:00 2001 From: cybermaggedon Date: Tue, 3 Dec 2024 21:30:14 +0000 Subject: [PATCH] Fix async problem on text load (#191) --- trustgraph-flow/trustgraph/api/gateway/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trustgraph-flow/trustgraph/api/gateway/service.py b/trustgraph-flow/trustgraph/api/gateway/service.py index 38ff8291..faa250dc 100755 --- a/trustgraph-flow/trustgraph/api/gateway/service.py +++ b/trustgraph-flow/trustgraph/api/gateway/service.py @@ -212,7 +212,7 @@ class Api: # Text is base64 encoded text = base64.b64decode(data["text"]).decode(charset) - resp = asyncio.to_thread( + resp = await asyncio.to_thread( self.text_out.send, None, TextDocument(