Skip to content

Commit

Permalink
chore: some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulsametileri committed Mar 28, 2024
1 parent 48986ac commit bc8ff85
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion batch_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ func (b *batchConsumer) process(chunkMessages []*Message) {
errorMessage := consumeErr.Error()
if b.transactionalRetry {
for i := range chunkMessages {
chunkMessages[i].ErrDescription = consumeErr.Error()
cronsumerMessages = append(cronsumerMessages, chunkMessages[i].toRetryableMessage(b.retryTopic, errorMessage))
}
} else {
Expand Down
3 changes: 1 addition & 2 deletions examples/with-kafka-transactional-retry-disabled/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import (

func main() {
producer, _ := kafka.NewProducer(&kafka.ProducerConfig{
DistributedTracingConfiguration: kafka.DistributedTracingConfiguration{},
Writer: kafka.WriterConfig{Brokers: []string{"localhost:29092"}, Topic: "standart-topic"},
Writer: kafka.WriterConfig{Brokers: []string{"localhost:29092"}, Topic: "standart-topic"},
})

producer.ProduceBatch(context.Background(), []kafka.Message{
Expand Down
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type Message struct {

// IsFailed Is only used on transactional retry disabled
IsFailed bool
// ErrDescription specifies IsFailed message error
// ErrDescription specifies the IsFailed message's error
ErrDescription string
}

Expand Down

0 comments on commit bc8ff85

Please sign in to comment.