diff --git a/bar.go b/bar.go index 8676663..d05f638 100644 --- a/bar.go +++ b/bar.go @@ -530,7 +530,7 @@ } func (s bState) decoratorEwmaUpdate(dur time.Duration) { - wg := new(sync.WaitGroup) + var wg sync.WaitGroup for i := 0; i < len(s.ewmaDecorators); i++ { switch d := s.ewmaDecorators[i]; i { case len(s.ewmaDecorators) - 1: @@ -547,7 +547,7 @@ } func (s bState) decoratorAverageAdjust(start time.Time) { - wg := new(sync.WaitGroup) + var wg sync.WaitGroup for i := 0; i < len(s.averageDecorators); i++ { switch d := s.averageDecorators[i]; i { case len(s.averageDecorators) - 1: @@ -564,7 +564,7 @@ } func (s bState) decoratorShutdownNotify() { - wg := new(sync.WaitGroup) + var wg sync.WaitGroup for i := 0; i < len(s.shutdownListeners); i++ { switch d := s.shutdownListeners[i]; i { case len(s.shutdownListeners) - 1: