Prechádzať zdrojové kódy

ut transactional flag

francois 5 rokov pred
rodič
commit
6b86562f5c

+ 2 - 1
records_test.go

@@ -76,7 +76,8 @@ func TestLegacyRecords(t *testing.T) {
 
 func TestDefaultRecords(t *testing.T) {
 	batch := &RecordBatch{
-		Version: 2,
+		IsTransactional: true,
+		Version:         2,
 		Records: []*Record{
 			{
 				Value: []byte{1},

+ 1 - 1
tools/uncomitted-messages/kafka-console-consumer.go

@@ -9,7 +9,7 @@ import (
 
 	// when testing locally, it is way faster to edit this to reference your local repo if different
 	// if you want to do it properly but slowly you may use some dependency manager magic
-	"github.com/Shopify/sarama"
+	"github.com/FrancoisPoinsot/sarama"
 )
 
 var (