Просмотр исходного кода

Merge pull request #978 from mkevac/master

add format of an GetOffset argument to documentation
Evan Huus 8 лет назад
Родитель
Сommit
f12be49deb
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      client.go

+ 3 - 3
client.go

@@ -49,9 +49,9 @@ type Client interface {
 	RefreshMetadata(topics ...string) error
 
 	// GetOffset queries the cluster to get the most recent available offset at the
-	// given time on the topic/partition combination. Time should be OffsetOldest for
-	// the earliest available offset, OffsetNewest for the offset of the message that
-	// will be produced next, or a time.
+	// given time (in milliseconds) on the topic/partition combination.
+	// Time should be OffsetOldest for the earliest available offset,
+	// OffsetNewest for the offset of the message that will be produced next, or a time.
 	GetOffset(topic string, partitionID int32, time int64) (int64, error)
 
 	// Coordinator returns the coordinating broker for a consumer group. It will