Skip to content

Commit

Permalink
Merge pull request #1769 from knweiss/typos
Browse files Browse the repository at this point in the history
udp_queues_linux.go: s/upd/udp/ in two error strings
  • Loading branch information
SuperQ committed Jun 29, 2020
2 parents 8d436be + b9b1d4e commit 7ad86f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collector/udp_queues_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (c *udpQueuesCollector) Update(ch chan<- prometheus.Metric) error {
if errors.Is(errIPv4, os.ErrNotExist) {
level.Debug(c.logger).Log("msg", "not collecting ipv4 based metrics")
} else {
return fmt.Errorf("couldn't get upd queued bytes: %w", errIPv4)
return fmt.Errorf("couldn't get udp queued bytes: %w", errIPv4)
}
}

Expand All @@ -77,7 +77,7 @@ func (c *udpQueuesCollector) Update(ch chan<- prometheus.Metric) error {
if errors.Is(errIPv6, os.ErrNotExist) {
level.Debug(c.logger).Log("msg", "not collecting ipv6 based metrics")
} else {
return fmt.Errorf("couldn't get upd6 queued bytes: %w", errIPv6)
return fmt.Errorf("couldn't get udp6 queued bytes: %w", errIPv6)
}
}

Expand Down

0 comments on commit 7ad86f7

Please sign in to comment.