diff --git a/docs/docs/en/contributing/4_adapters.md b/docs/docs/en/contributing/4_adapters.md index 1dcbc85d..dac174c2 100644 --- a/docs/docs/en/contributing/4_adapters.md +++ b/docs/docs/en/contributing/4_adapters.md @@ -90,7 +90,7 @@ There are two possible options here: In the second case, we were less lucky and we need to convert a loop into a `callback`. This can be done, for example, using `asyncio.Task`, as in the *Redis* example. However, in this case, you should not forget to correctly cancel these tasks in the `close` method. -```python linenums='1' hl_lines="15 25-26 44 54" +```python linenums='1' hl_lines="16 26-27 45 55" {!> docs_src/contributing/adapter/redis_start.py !} ``` diff --git a/docs/docs/ru/contributing/4_adapters.md b/docs/docs/ru/contributing/4_adapters.md index 610371c3..b64fdd12 100644 --- a/docs/docs/ru/contributing/4_adapters.md +++ b/docs/docs/ru/contributing/4_adapters.md @@ -92,7 +92,7 @@ Во втором случае нам повезло меньше и нам нужно превратить цикл в `callback`. Этого можно допиться, например, используя `asyncio.Task`, как в примере с *Redis*. Однако, в таком случае, нужно не забыть корректным образом завершить эти задачи в методе `close`. -```python linenums='1' hl_lines="15 25-26 44 54" +```python linenums='1' hl_lines="16 26-27 45 55" {!> docs_src/contributing/adapter/redis_start.py !} ```