浏览代码

Drop unnecessary type and iota

Evan Huus 12 年之前
父节点
当前提交
2dc6a7d564
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      consumer.go

+ 2 - 2
consumer.go

@@ -9,10 +9,10 @@ const (
 	OFFSET_METHOD_MANUAL OffsetMethod = iota
 	// OFFSET_METHOD_NEWEST causes the consumer to start at the most recent available offset, as
 	// determined by querying the broker.
-	OFFSET_METHOD_NEWEST OffsetMethod = iota
+	OFFSET_METHOD_NEWEST
 	// OFFSET_METHOD_OLDEST causes the consumer to start at the oldest available offset, as
 	// determined by querying the broker.
-	OFFSET_METHOD_OLDEST OffsetMethod = iota
+	OFFSET_METHOD_OLDEST
 )
 
 // ConsumerConfig is used to pass multiple configuration options to NewConsumer.