Skip to content

Commit

Permalink
revert back to just setting started directly
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Jul 29, 2024
1 parent 3459bb7 commit e9a9dd3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e9a9dd3

Please sign in to comment.