Rename extractSampleValue -> extractSampleValues.

This commit is contained in:
Julius Volz 2013-03-16 01:28:22 -07:00 committed by Matt T. Proud
parent 4e7db57e76
commit a4361e4116
1 changed files with 4 additions and 4 deletions

View File

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