From e9a9dd3e6525f2d746cd99ad9ecf9509543b22eb Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Mon, 29 Jul 2024 14:31:27 +0200 Subject: [PATCH] revert back to just setting started directly --- metrics.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/metrics.go b/metrics.go index 5477130..3788eb8 100644 --- a/metrics.go +++ b/metrics.go @@ -98,14 +98,10 @@ type metrics struct { } func newMetrics(options metricsOptions, channels metricsChannels) *metrics { - started := time.Now() - if options.started != nil { - started = *options.started - } m := &metrics{ metricsChannels: channels, options: options, - started: started, + started: time.Now(), close: make(chan struct{}), closed: make(chan struct{}), maxSkips: 10,