panic->error
This commit is contained in:
parent
260625f421
commit
5bc9425c54
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user