Skip to content

Commit 9f84919

Browse files
committed
reduce max batch bytes for test
1 parent 63d7061 commit 9f84919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/storage/kafka_publisher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func NewKafkaPublisher(cfg *config.KafkaConfig) (*KafkaPublisher, error) {
6969
kgo.TransactionalID(fmt.Sprintf("insight-producer-%s", chainID)),
7070
kgo.MaxBufferedBytes(2 * 1024 * 1024 * 1024), // 2GB
7171
kgo.MaxBufferedRecords(1_000_000),
72-
kgo.ProducerBatchMaxBytes(100 * 1024 * 1024), // 100MB
72+
kgo.ProducerBatchMaxBytes(10 * 1024 * 1024), // 100MB
7373
kgo.RecordPartitioner(kgo.ManualPartitioner()),
7474
kgo.ProduceRequestTimeout(30 * time.Second),
7575
kgo.MetadataMaxAge(60 * time.Second),

0 commit comments

Comments
 (0)