Evan Huus 11 years ago
parent
commit
0d4e4a2ea0
3 changed files with 6 additions and 6 deletions
  1. 1 1
      consumer.go
  2. 4 4
      produce_request.go
  3. 1 1
      producer.go

+ 1 - 1
consumer.go

@@ -2,7 +2,7 @@ package kafka
 
 type Consumer struct {
 	client *Client
-	topic string
+	topic  string
 }
 
 func NewConsumer(client *Client, topic string) *Consumer {

+ 4 - 4
produce_request.go

@@ -2,16 +2,16 @@ package kafka
 
 type produceRequestPartitionBlock struct {
 	partition int32
-	msgSet *messageSet
+	msgSet    *messageSet
 }
 
 type produceRequestTopicBlock struct {
-	topic *string
+	topic      *string
 	partitions []produceRequestPartitionBlock
 }
 
 type produceRequest struct {
 	requiredAcks int16
-	timeout int32
-	topics []produceRequestTopicBlock
+	timeout      int32
+	topics       []produceRequestTopicBlock
 }

+ 1 - 1
producer.go

@@ -2,7 +2,7 @@ package kafka
 
 type Producer struct {
 	client *Client
-	topic string
+	topic  string
 }
 
 func NewProducer(client *Client, topic string) *Producer {