Codebase list golang-github-vbauerster-mpb / 17e5f3b
fixup! make sure TraverseDecorators is sync Vladimir Bauer 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
375375 shutdownListeners = append(shutdownListeners, d)
376376 }
377377 })
378 b.hasEwmaDecorators = len(ewmaDecorators) != 0
378379 select {
379380 case b.operateState <- func(s *bState) {
380381 s.averageDecorators = averageDecorators
381382 s.ewmaDecorators = ewmaDecorators
382383 s.shutdownListeners = shutdownListeners
383384 }:
384 b.hasEwmaDecorators = len(ewmaDecorators) != 0
385385 case <-b.done:
386386 }
387387 }