diff --git a/storage/metric/leveldb.go b/storage/metric/leveldb.go index b4cff7c28..2af06ac48 100644 --- a/storage/metric/leveldb.go +++ b/storage/metric/leveldb.go @@ -698,7 +698,7 @@ func extractSampleKey(i iterator) (k *dto.SampleKey, err error) { return } -func extractSampleValue(i iterator) (v *dto.SampleValueSeries, err error) { +func extractSampleValues(i iterator) (v *dto.SampleValueSeries, err error) { if i == nil { panic("nil iterator") } @@ -1091,7 +1091,7 @@ func (l *LevelDBMetricPersistence) GetValueAtTime(m model.Metric, t time.Time, s return } - firstValue, err = extractSampleValue(iterator) + firstValue, err = extractSampleValues(iterator) if err != nil { return } @@ -1147,7 +1147,7 @@ func (l *LevelDBMetricPersistence) GetValueAtTime(m model.Metric, t time.Time, s var secondValue *dto.SampleValueSeries - secondValue, err = extractSampleValue(iterator) + secondValue, err = extractSampleValues(iterator) if err != nil { return } @@ -1211,7 +1211,7 @@ func (l *LevelDBMetricPersistence) GetRangeValues(m model.Metric, i model.Interv break } - retrievedValue, err := extractSampleValue(iterator) + retrievedValue, err := extractSampleValues(iterator) if err != nil { return nil, err }