Skip to content

Commit

Permalink
removes sentitnel error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhang Balkundi committed Apr 4, 2024
1 parent f4aca66 commit 37f9b68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
9 changes: 0 additions & 9 deletions kafka/errors.go

This file was deleted.

3 changes: 2 additions & 1 deletion kafka/kafkahelper.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package kafka

import (
"fmt"
"github.com/confluentinc/confluent-kafka-go/v2/kafka"
)

Expand All @@ -20,7 +21,7 @@ func createConsumer(consumerConfig *kafka.ConfigMap, topics []string) confluentC
// offsets are stored in memory and are later flushed by the auto-commit timer
func storeOffsets(consumer confluentConsumer, partition kafka.TopicPartition) error {
if partition.Error != nil {
return ErrPart
return fmt.Errorf("error storing offsets:%w", partition.Error)
}
offsets := []kafka.TopicPartition{partition}
offsets[0].Offset++
Expand Down

0 comments on commit 37f9b68

Please sign in to comment.