Rename XGroup to XInfoGroups

This commit is contained in:
Vladimir Mihailenco 2019-10-08 12:50:13 +03:00
parent d5b2eccbe2
commit f10f34eb29
1 changed files with 6 additions and 6 deletions

View File

@ -1291,10 +1291,10 @@ func (cmd *XPendingExtCmd) readReply(rd *proto.Reader) error {
type XInfoGroupsCmd struct { type XInfoGroupsCmd struct {
baseCmd baseCmd
val []XGroup val []XInfoGroups
} }
type XGroup struct { type XInfoGroups struct {
Name string Name string
Consumers int64 Consumers int64
Pending int64 Pending int64
@ -1309,11 +1309,11 @@ func NewXInfoGroupsCmd(stream string) *XInfoGroupsCmd {
} }
} }
func (cmd *XInfoGroupsCmd) Val() []XGroup { func (cmd *XInfoGroupsCmd) Val() []XInfoGroups {
return cmd.val return cmd.val
} }
func (cmd *XInfoGroupsCmd) Result() ([]XGroup, error) { func (cmd *XInfoGroupsCmd) Result() ([]XInfoGroups, error) {
return cmd.val, cmd.err return cmd.val, cmd.err
} }
@ -1329,7 +1329,7 @@ func (cmd *XInfoGroupsCmd) readReply(rd *proto.Reader) error {
if err != nil { if err != nil {
return nil, err return nil, err
} }
cmd.val = append(cmd.val, v.(XGroup)) cmd.val = append(cmd.val, v.(XInfoGroups))
} }
return nil, nil return nil, nil
}) })
@ -1343,7 +1343,7 @@ func xGroupInfoParser(rd *proto.Reader, n int64) (interface{}, error) {
} }
var ( var (
err error err error
grp XGroup grp XInfoGroups
key string key string
val string val string
) )