Skip to content

Commit 320afd3

Browse files
committed
wrap xgroup_create's MKSTREAM option in a Token.get_token()
1 parent 5f61ad9 commit 320afd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ def xgroup_create(self, name, groupname, id='$', mkstream=False):
18791879
"""
18801880
pieces = ['XGROUP CREATE', name, groupname, id]
18811881
if mkstream:
1882-
pieces.append('MKSTREAM')
1882+
pieces.append(Token.get_token('MKSTREAM'))
18831883
return self.execute_command(*pieces)
18841884

18851885
def xgroup_delconsumer(self, name, groupname, consumername):

0 commit comments

Comments
 (0)