From 61f866bb942d76955e3453e412d2e2a81f860176 Mon Sep 17 00:00:00 2001 From: Goutham Veeramachaneni Date: Sun, 26 Mar 2017 23:22:58 +0530 Subject: [PATCH] Add Sample Back The compilation and tests are broken as head.go requires sample which has been moved to another package while moving BufferedSeriesIterator. Duplication seemed better compared to exposing sample from tsdbutil. --- head.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/head.go b/head.go index 7ec2f2eae..cadc4a68b 100644 --- a/head.go +++ b/head.go @@ -34,6 +34,11 @@ var ( ErrOutOfBounds = errors.New("out of bounds") ) +type sample struct { + t int64 + v float64 +} + // headBlock handles reads and writes of time series data within a time window. type headBlock struct { mtx sync.RWMutex