Skip to content

Commit

Permalink
fix: typo on "Parase", should be "Parse".
Browse files Browse the repository at this point in the history
title says it all.

Signed-off-by: Robin <[email protected]>
  • Loading branch information
RobinNil committed Jun 23, 2023
1 parent d960666 commit 7b7cdcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/metrics/providers/graphite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion pkg/metrics/providers/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7b7cdcf

Please sign in to comment.