Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
asheswook committed Jul 25, 2024
1 parent 0233856 commit a460b13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (consumer *StreamConsumer) Transaction(producer sarama.AsyncProducer, messa
if err != nil {
fmt.Println("Error committing transaction:", err)
consumer.handleTxnError(producer, message, session, err, func() error {
return producer.AddMessageToTxn(message, consumer.groupId, nil)
return producer.CommitTxn()
})
return
}
Expand Down
2 changes: 1 addition & 1 deletion internal/consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"
)

var cbrokers = []string{"localhost:9093"}
var cbrokers = []string{"kafka.vp-datacenter-1.violetpay.net:9092", "kafka.vp-datacenter-1.violetpay.net:9093", "kafka.vp-datacenter-1.violetpay.net:9094"}

// TestSerializer is a mock implementation of common.MessageSerializer
type TestSerializer struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/producer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
)

var pbrokers = []string{"localhost:9093"}
var pbrokers = []string{"kafka.vp-datacenter-1.violetpay.net:9092", "kafka.vp-datacenter-1.violetpay.net:9093", "kafka.vp-datacenter-1.violetpay.net:9094"}

func TestNewProducerPool(t *testing.T) {
t.Run("NewProducerPool no configProvider", func(t *testing.T) {
Expand Down

0 comments on commit a460b13

Please sign in to comment.