Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion asyncio_redis_rate_limit/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def pipeline_expire(
) -> AnyPipeline:
"""Compatibility mode for `.expire(..., nx=True)` command."""
if isinstance(pipeline, _AsyncPipeline):
return pipeline.expire(cache_key, seconds, nx=True) # type: ignore
return pipeline.expire(cache_key, seconds) # type: ignore
# `aioredis` somehow does not have this boolean argument in `.expire`,
# so, we use `EXPIRE` directly with `NX` flag.
return pipeline.execute_command( # type: ignore
Expand Down