Skip to content

Commit 581b5a9

Browse files
committed
Use context.TODO for now
1 parent 1226398 commit 581b5a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

collector/nginx_plus.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package collector
22

33
import (
4+
"context"
45
"fmt"
56
"log/slog"
67
"strconv"
@@ -622,7 +623,7 @@ func (c *NginxPlusCollector) Collect(ch chan<- prometheus.Metric) {
622623
c.mutex.Lock() // To protect metrics from concurrent collects
623624
defer c.mutex.Unlock()
624625

625-
stats, err := c.nginxClient.GetStats()
626+
stats, err := c.nginxClient.GetStats(context.TODO())
626627
if err != nil {
627628
c.upMetric.Set(nginxDown)
628629
ch <- c.upMetric

0 commit comments

Comments
 (0)