From 1d396b96dc35437e314762dcc425dc76889cc6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0tibran=C3=BD?= Date: Wed, 26 Feb 2020 14:11:55 +0100 Subject: [PATCH] Specify that returned samples must be ordered by timestamp. (#6877) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Štibraný --- tsdb/chunkenc/chunk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/chunkenc/chunk.go b/tsdb/chunkenc/chunk.go index 430b77abb..fa67c1cf4 100644 --- a/tsdb/chunkenc/chunk.go +++ b/tsdb/chunkenc/chunk.go @@ -73,7 +73,7 @@ type Appender interface { } // Iterator is a simple iterator that can only get the next value. -// Iterator iterates over the samples of a time series. +// Iterator iterates over the samples of a time series, in timestamp-increasing order. type Iterator interface { // Next advances the iterator by one. Next() bool