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.
This commit is contained in:
Goutham Veeramachaneni 2017-03-26 23:22:58 +05:30
parent f85d89abc0
commit 61f866bb94
No known key found for this signature in database
GPG Key ID: F1C217E8E9023CAD
1 changed files with 5 additions and 0 deletions

View File

@ -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