Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yolken-segment committed Oct 1, 2021
1 parent 3e543ec commit fc8f776
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions describegroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,20 +187,22 @@ func decodeMemberMetadata(rawMetadata []byte) (DescribeGroupsResponseMemberMetad
return mm, err
}

if mm.Version == 1 {
fn := func(r *bufio.Reader, size int) (fnRemain int, fnErr error) {
//item := DescribeGroupsResponseMemberMetadataOwnedPartition{}
//if fnRemain, fnErr = (&item).readFrom(r, size); fnErr != nil {
// return
//}
//mm.OwnedPartitions = append(mm.OwnedPartitions, item)
return
}
/*
if mm.Version == 1 {
fn := func(r *bufio.Reader, size int) (fnRemain int, fnErr error) {
//item := DescribeGroupsResponseMemberMetadataOwnedPartition{}
//if fnRemain, fnErr = (&item).readFrom(r, size); fnErr != nil {
// return
//}
//mm.OwnedPartitions = append(mm.OwnedPartitions, item)
return
}
if remain, err = readArrayWith(bufReader, remain, fn); err != nil {
return mm, err
if remain, err = readArrayWith(bufReader, remain, fn); err != nil {
return mm, err
}
}
}
*/

//if remain != 0 {
// return mm, fmt.Errorf("Got non-zero number of bytes remaining: %d", remain)
Expand Down

0 comments on commit fc8f776

Please sign in to comment.