Skip to content

Commit

Permalink
Merge pull request #236 from rmb938/fix235
Browse files Browse the repository at this point in the history
append partitions and topics to delete records request
  • Loading branch information
twmb authored Oct 26, 2022
2 parents b605610 + 172c02e commit fd636b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/kadm/topics.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ func (cl *Client) DeleteRecords(ctx context.Context, os Offsets) (DeleteRecordsR
rp := kmsg.NewDeleteRecordsRequestTopicPartition()
rp.Partition = p
rp.Offset = o.At
rt.Partitions = append(rt.Partitions, rp)
}
req.Topics = append(req.Topics, rt)
}

shards := cl.cl.RequestSharded(ctx, req)
Expand Down

0 comments on commit fd636b8

Please sign in to comment.