Skip to content

Commit

Permalink
Update groups.go
Browse files Browse the repository at this point in the history
  • Loading branch information
0xgirish authored May 4, 2024
1 parent cf209db commit 823ff5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/kadm/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -1463,8 +1463,9 @@ func (cl *Client) Lag(ctx context.Context, groups ...string) (DescribedGroupLags
continue
}

// if no groups were specified for lag calculation, we will calculate lag for all groups
// adding groups to the set again.
// If the input set of groups is empty, DescribeGroups returns all groups.
// We add to `set` here so that the Lag function itself can calculate
// lag for all groups.
set[g.Group] = struct{}{}
}
if len(set) == 0 {
Expand Down

0 comments on commit 823ff5b

Please sign in to comment.