From 9f18e2fc42c9bace6c3ef144be493fa9496e4daf Mon Sep 17 00:00:00 2001 From: Not Rob Pike Date: Tue, 12 Mar 2024 10:56:43 -0700 Subject: [PATCH] remove unused now field --- prometheus/metric.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/prometheus/metric.go b/prometheus/metric.go index f018e57..07bbc9d 100644 --- a/prometheus/metric.go +++ b/prometheus/metric.go @@ -92,9 +92,6 @@ type Opts struct { // machine_role metric). See also // https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels-not-static-scraped-labels ConstLabels Labels - - // now is for testing purposes, by default it's time.Now. - now func() time.Time } // BuildFQName joins the given three name components by "_". Empty name