From c9039b1d012172e7ef3f0ea030420a58db1cbd2d Mon Sep 17 00:00:00 2001 From: Numerlor <25886452+Numerlor@users.noreply.github.com> Date: Wed, 3 Feb 2021 12:08:33 +0100 Subject: Create a task for setting the redis result instead of awaiting The queue parsing doesn't depend on anything with redis, so the await only delays the result being set on the future. --- bot/exts/info/doc/_batch_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/info/doc/_batch_parser.py b/bot/exts/info/doc/_batch_parser.py index 13e197587..2407a603a 100644 --- a/bot/exts/info/doc/_batch_parser.py +++ b/bot/exts/info/doc/_batch_parser.py @@ -149,7 +149,7 @@ class BatchParser: partial(get_symbol_markdown, soup, item), ) if markdown is not None: - await doc_cache.set(item, markdown) + asyncio.create_task(doc_cache.set(item, markdown)) else: asyncio.create_task(self.stale_inventory_notifier.send_warning(item)) except Exception as e: -- cgit v1.2.3