Skip to content

Commit

Permalink
update docs hl
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Jun 14, 2023
1 parent 1c1abf0 commit 19429b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/en/contributing/4_adapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 !}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/ru/contributing/4_adapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 !}
```

Expand Down

0 comments on commit 19429b0

Please sign in to comment.