Evan Huus 12 年之前
父節點
當前提交
0d4e4a2ea0
共有 3 個文件被更改,包括 6 次插入6 次删除
  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 {