summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorАнтон Безденежных <gamer392@yandex.ru>2022-07-24 20:40:50 +0500
committerGitHub <noreply@github.com>2022-07-24 18:40:50 +0300
commit99b4df4af565bbf05f8aafbdf4d65d768416c250 (patch)
treeadcd0e0f7cef12c2b82c05a3f0d0653241532413
parenta8c8227b0cddab6ae77fecbd935f327b30628b32 (diff)
downloadredis-py-99b4df4af565bbf05f8aafbdf4d65d768416c250.tar.gz
Fix: `start_id` type for `XAUTOCLAIM` (#2257)
* Changed start_id type for xautoclaim * Added to changes Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
-rw-r--r--CHANGES1
-rw-r--r--redis/commands/core.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 6a890ef..2abf627 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,4 @@
+ * Fix start_id type for XAUTOCLAIM
* Remove verbose logging from cluster.py
* Add retry mechanism to async version of Connection
* Compare commands case-insensitively in the asyncio command parser
diff --git a/redis/commands/core.py b/redis/commands/core.py
index 027d3db..455c3f4 100644
--- a/redis/commands/core.py
+++ b/redis/commands/core.py
@@ -3420,7 +3420,7 @@ class StreamCommands(CommandsProtocol):
groupname: GroupT,
consumername: ConsumerT,
min_idle_time: int,
- start_id: int = 0,
+ start_id: StreamIdT = "0-0",
count: Union[int, None] = None,
justid: bool = False,
) -> ResponseT: