diff options
| author | 2021-02-03 12:08:33 +0100 | |
|---|---|---|
| committer | 2021-02-03 12:08:33 +0100 | |
| commit | c9039b1d012172e7ef3f0ea030420a58db1cbd2d (patch) | |
| tree | 5f0471c1e027041347313ec8e77d9f2e034bb31c | |
| parent | Move BeautifulSoup parsing into an executor (diff) | |
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.
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/info/doc/_batch_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |