@@ -178,36 +178,42 @@ func (c cmdable) XReadStreams(ctx context.Context, streams ...string) *XStreamSl
178
178
179
179
func (c cmdable ) XGroupCreate (ctx context.Context , stream , group , start string ) * StatusCmd {
180
180
cmd := NewStatusCmd (ctx , "xgroup" , "create" , stream , group , start )
181
+ cmd .SetFirstKeyPos (2 )
181
182
_ = c (ctx , cmd )
182
183
return cmd
183
184
}
184
185
185
186
func (c cmdable ) XGroupCreateMkStream (ctx context.Context , stream , group , start string ) * StatusCmd {
186
187
cmd := NewStatusCmd (ctx , "xgroup" , "create" , stream , group , start , "mkstream" )
188
+ cmd .SetFirstKeyPos (2 )
187
189
_ = c (ctx , cmd )
188
190
return cmd
189
191
}
190
192
191
193
func (c cmdable ) XGroupSetID (ctx context.Context , stream , group , start string ) * StatusCmd {
192
194
cmd := NewStatusCmd (ctx , "xgroup" , "setid" , stream , group , start )
195
+ cmd .SetFirstKeyPos (2 )
193
196
_ = c (ctx , cmd )
194
197
return cmd
195
198
}
196
199
197
200
func (c cmdable ) XGroupDestroy (ctx context.Context , stream , group string ) * IntCmd {
198
201
cmd := NewIntCmd (ctx , "xgroup" , "destroy" , stream , group )
202
+ cmd .SetFirstKeyPos (2 )
199
203
_ = c (ctx , cmd )
200
204
return cmd
201
205
}
202
206
203
207
func (c cmdable ) XGroupCreateConsumer (ctx context.Context , stream , group , consumer string ) * IntCmd {
204
208
cmd := NewIntCmd (ctx , "xgroup" , "createconsumer" , stream , group , consumer )
209
+ cmd .SetFirstKeyPos (2 )
205
210
_ = c (ctx , cmd )
206
211
return cmd
207
212
}
208
213
209
214
func (c cmdable ) XGroupDelConsumer (ctx context.Context , stream , group , consumer string ) * IntCmd {
210
215
cmd := NewIntCmd (ctx , "xgroup" , "delconsumer" , stream , group , consumer )
216
+ cmd .SetFirstKeyPos (2 )
211
217
_ = c (ctx , cmd )
212
218
return cmd
213
219
}
0 commit comments