Skip to content

Commit a460b13

Browse files
committed
Fix typo
1 parent 0233856 commit a460b13

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/consumer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func (consumer *StreamConsumer) Transaction(producer sarama.AsyncProducer, messa
219219
if err != nil {
220220
fmt.Println("Error committing transaction:", err)
221221
consumer.handleTxnError(producer, message, session, err, func() error {
222-
return producer.AddMessageToTxn(message, consumer.groupId, nil)
222+
return producer.CommitTxn()
223223
})
224224
return
225225
}

internal/consumer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"time"
1212
)
1313

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

1616
// TestSerializer is a mock implementation of common.MessageSerializer
1717
type TestSerializer struct {

internal/producer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
)
1010

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

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

0 commit comments

Comments
 (0)