From 5b294d079a805a068bcb46c6dbe08f4bee7f2d63 Mon Sep 17 00:00:00 2001 From: Martin Kraft Date: Wed, 15 Jun 2022 12:53:28 -0400 Subject: [PATCH] Fix for time module. (#20479) --- store/timerlayer/timerlayer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/timerlayer/timerlayer.go b/store/timerlayer/timerlayer.go index 11be1b74e2..010c4a61b5 100644 --- a/store/timerlayer/timerlayer.go +++ b/store/timerlayer/timerlayer.go @@ -3564,11 +3564,11 @@ func (s *TimerLayerGroupStore) DistinctGroupMemberCount() (int64, error) { } func (s *TimerLayerGroupStore) DistinctGroupMemberCountForSource(source model.GroupSource) (int64, error) { - start := timemodule.Now() + start := time.Now() result, err := s.GroupStore.DistinctGroupMemberCountForSource(source) - elapsed := float64(timemodule.Since(start)) / float64(timemodule.Second) + elapsed := float64(time.Since(start)) / float64(time.Second) if s.Root.Metrics != nil { success := "false" if err == nil {