Skip to content

Commit

Permalink
append partitions and topics to delete records request
Browse files Browse the repository at this point in the history
  • Loading branch information
rmb938 committed Oct 25, 2022
1 parent b605610 commit 172c02e
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 172c02e

Please sign in to comment.