slaventius 2 years ago
parent ed68c779cf
commit 062fe41934
  1. 5
      internal/transport/kafka/writer.go

@ -95,8 +95,9 @@ func NewWriter(ctx context.Context, logger *logger.Logger, topic string, address
s := &KafkaWriter{
ctx: ctx,
writer: &kafka.Writer{
Topic: topic,
Balancer: &kafka.LeastBytes{},
Topic: topic,
Balancer: &kafka.LeastBytes{},
// Balancer: &kafka.Murmur2Balancer{},
WriteBackoffMax: time.Millisecond * 100,
BatchTimeout: time.Millisecond * 100,
Addr: kafka.TCP(address...),

Loading…
Cancel
Save