From 7b7cdcf7cd012a3f2b7122050e1ce35da6e6d71c Mon Sep 17 00:00:00 2001 From: Robin <330836+RobinNil@users.noreply.github.com> Date: Fri, 23 Jun 2023 07:59:14 -0400 Subject: [PATCH] fix: typo on "Parase", should be "Parse". title says it all. Signed-off-by: Robin <330836+RobinNil@users.noreply.github.com> --- pkg/metrics/providers/graphite.go | 2 +- pkg/metrics/providers/prometheus.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/metrics/providers/graphite.go b/pkg/metrics/providers/graphite.go index b2fc54f10..26c2ee7a0 100644 --- a/pkg/metrics/providers/graphite.go +++ b/pkg/metrics/providers/graphite.go @@ -155,7 +155,7 @@ func (g *GraphiteProvider) RunQuery(query string) (float64, error) { query = g.trimQuery(query) u, err := url.Parse(fmt.Sprintf("./render?%s", query)) if err != nil { - return 0, fmt.Errorf("url.Parase failed: %w", err) + return 0, fmt.Errorf("url.Parse failed: %w", err) } q := u.Query() diff --git a/pkg/metrics/providers/prometheus.go b/pkg/metrics/providers/prometheus.go index 73653eea6..5254de692 100644 --- a/pkg/metrics/providers/prometheus.go +++ b/pkg/metrics/providers/prometheus.go @@ -104,7 +104,7 @@ func (p *PrometheusProvider) RunQuery(query string) (float64, error) { query = url.QueryEscape(p.trimQuery(query)) u, err := url.Parse(fmt.Sprintf("./api/v1/query?query=%s", query)) if err != nil { - return 0, fmt.Errorf("url.Parase failed: %w", err) + return 0, fmt.Errorf("url.Parse failed: %w", err) } u.Path = path.Join(p.url.Path, u.Path)