Skip to content

Commit

Permalink
Document non-obvious function behaviour (grafana#1504)
Browse files Browse the repository at this point in the history
Signed-off-by: Goutham Veeramachaneni <[email protected]>
  • Loading branch information
gouthamve authored and tomwilkie committed Jul 10, 2019
1 parent 7565090 commit 9027304
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chunk_store_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ func (c *Fetcher) worker() {
}
}

// FetchChunks fetchers a set of chunks from cache and store.
// FetchChunks fetches a set of chunks from cache and store. Note that the keys passed in must be
// lexicographically sorted, while the returned chunks are not in the same order as the passed in chunks.
func (c *Fetcher) FetchChunks(ctx context.Context, chunks []Chunk, keys []string) ([]Chunk, error) {
log, ctx := spanlogger.New(ctx, "ChunkStore.fetchChunks")
defer log.Span.Finish()
Expand Down

0 comments on commit 9027304

Please sign in to comment.