panic->error

This commit is contained in:
Nan Monnand Deng 2014-09-05 17:37:55 -04:00
parent 260625f421
commit 5bc9425c54
2 changed files with 4 additions and 4 deletions

View File

@ -436,7 +436,7 @@ func (self *bigqueryStorage) RecentStats(containerName string, numStats int) ([]
}
func (self *bigqueryStorage) Samples(containerName string, numSamples int) ([]*info.ContainerStatsSample, error) {
panic("will be removed")
return nil, fmt.Errorf("will be removed")
}
func (self *bigqueryStorage) Close() error {
@ -450,7 +450,7 @@ func (self *bigqueryStorage) Percentiles(
cpuUsagePercentiles []int,
memUsagePercentiles []int,
) (*info.ContainerStatsPercentiles, error) {
panic("will be removed")
return nil, fmt.Errorf("will be removed")
}
// Create a new bigquery storage driver.

View File

@ -270,7 +270,7 @@ func (self *influxdbStorage) RecentStats(containerName string, numStats int) ([]
}
func (self *influxdbStorage) Samples(containerName string, numSamples int) ([]*info.ContainerStatsSample, error) {
panic("should not implement")
return nil, fmt.Errorf("will be removed")
}
func (self *influxdbStorage) Close() error {
@ -283,7 +283,7 @@ func (self *influxdbStorage) Percentiles(
cpuUsagePercentiles []int,
memUsagePercentiles []int,
) (*info.ContainerStatsPercentiles, error) {
panic("should not implement")
return nil, fmt.Errorf("will be removed")
}
// Returns a new influxdb series.