Use getMetrics in ReadLatencyMetrics. #7572
This commit is contained in:
@@ -957,7 +957,7 @@ type LatencyMetric struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ReadLatencyMetrics(c *client.Client) ([]LatencyMetric, error) {
|
func ReadLatencyMetrics(c *client.Client) ([]LatencyMetric, error) {
|
||||||
body, err := c.Get().AbsPath("/metrics").DoRaw()
|
body, err := getMetrics(c)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user