Rename extractSampleValue -> extractSampleValues.
This commit is contained in:
parent
4e7db57e76
commit
a4361e4116
|
@ -698,7 +698,7 @@ func extractSampleKey(i iterator) (k *dto.SampleKey, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractSampleValue(i iterator) (v *dto.SampleValueSeries, err error) {
|
func extractSampleValues(i iterator) (v *dto.SampleValueSeries, err error) {
|
||||||
if i == nil {
|
if i == nil {
|
||||||
panic("nil iterator")
|
panic("nil iterator")
|
||||||
}
|
}
|
||||||
|
@ -1091,7 +1091,7 @@ func (l *LevelDBMetricPersistence) GetValueAtTime(m model.Metric, t time.Time, s
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
firstValue, err = extractSampleValue(iterator)
|
firstValue, err = extractSampleValues(iterator)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -1147,7 +1147,7 @@ func (l *LevelDBMetricPersistence) GetValueAtTime(m model.Metric, t time.Time, s
|
||||||
|
|
||||||
var secondValue *dto.SampleValueSeries
|
var secondValue *dto.SampleValueSeries
|
||||||
|
|
||||||
secondValue, err = extractSampleValue(iterator)
|
secondValue, err = extractSampleValues(iterator)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -1211,7 +1211,7 @@ func (l *LevelDBMetricPersistence) GetRangeValues(m model.Metric, i model.Interv
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
retrievedValue, err := extractSampleValue(iterator)
|
retrievedValue, err := extractSampleValues(iterator)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue