Skip to content

Commit

Permalink
Fix typo in docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Feb 10, 2024
1 parent 148b49f commit 1f36955
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions limits/aio/storage/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ async def check(self) -> bool:

async def reset(self) -> Optional[int]:
"""
This function calls a Lua Script to delete keys prefixed with `self.PREFIX`
in block of 5000.
This function calls a Lua Script to delete keys prefixed with
``self.PREFIX`` in blocks of 5000.
.. warning:: This operation was designed to be fast, but was not tested
on a large production based system. Be careful with its usage as it
Expand Down Expand Up @@ -352,7 +352,7 @@ async def reset(self) -> Optional[int]:
"""
Redis Clusters are sharded and deleting across shards
can't be done atomically. Because of this, this reset loops over all
keys that are prefixed with `self.PREFIX` and calls delete on them,
keys that are prefixed with ``self.PREFIX`` and calls delete on them,
one at a time.
.. warning:: This operation was not tested with extremely large data sets.
Expand Down
4 changes: 2 additions & 2 deletions limits/storage/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ def check(self) -> bool:

def reset(self) -> Optional[int]:
"""
This function calls a Lua Script to delete keys prefixed with `self.PREFIX`
in block of 5000.
This function calls a Lua Script to delete keys prefixed with
``self.PREFIX`` in blocks of 5000.
.. warning::
This operation was designed to be fast, but was not tested
Expand Down
2 changes: 1 addition & 1 deletion limits/storage/redis_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def reset(self) -> Optional[int]:
"""
Redis Clusters are sharded and deleting across shards
can't be done atomically. Because of this, this reset loops over all
keys that are prefixed with `self.PREFIX` and calls delete on them,
keys that are prefixed with ``self.PREFIX`` and calls delete on them,
one at a time.
.. warning::
Expand Down

0 comments on commit 1f36955

Please sign in to comment.