diff options
| author | 2021-02-03 12:05:27 +0100 | |
|---|---|---|
| committer | 2021-02-03 12:05:27 +0100 | |
| commit | a09886d6356be9ea5a98a7deea0cebf31e510095 (patch) | |
| tree | 337592c1681b139e0c566e9444cf881a8c941dbe | |
| parent | Use more consistent naming for doc items and symbols (diff) | |
Remove url lock
The items are added to the futures dict before a context switch can
occur, making the subsequent requests to the url skip the queue
extend and suspend at the future await
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/info/doc/_batch_parser.py | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/bot/exts/info/doc/_batch_parser.py b/bot/exts/info/doc/_batch_parser.py index 2edf05ff0..c16cf6d28 100644 --- a/bot/exts/info/doc/_batch_parser.py +++ b/bot/exts/info/doc/_batch_parser.py @@ -14,8 +14,7 @@ from bs4 import BeautifulSoup  import bot  from bot.constants import Channels -from bot.utils.lock import lock_arg -from . import NAMESPACE, _cog, doc_cache +from . import _cog, doc_cache  from ._parsing import get_symbol_markdown  log = logging.getLogger(__name__) @@ -98,7 +97,6 @@ class BatchParser:          self.stale_inventory_notifier = StaleInventoryNotifier() -    @lock_arg(NAMESPACE, "doc_item", attrgetter("url"), wait=True)      async def get_markdown(self, doc_item: _cog.DocItem) -> str:          """          Get the result Markdown of `doc_item`. | 
