Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Varankin <[email protected]>
  • Loading branch information
narqo committed Sep 20, 2024
1 parent b15ccc3 commit f7b2a10
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/blockbuilder/blockbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ func (b *BlockBuilder) starting(context.Context) (err error) {
return fmt.Errorf("creating kafka reader: %w", err)
}

// Immediately unassign (remove) all partitions from the client. We control the order and the pace of fetching within the cycles.
b.kafkaClient.RemoveConsumePartitions(map[string][]int32{
b.cfg.Kafka.Topic: b.assignedPartitionIDs,
})

return nil
}

Expand Down

0 comments on commit f7b2a10

Please sign in to comment.