fixup! make sure TraverseDecorators is sync
Vladimir Bauer
4 years ago
| 375 | 375 | shutdownListeners = append(shutdownListeners, d) |
| 376 | 376 | } |
| 377 | 377 | }) |
| 378 | b.hasEwmaDecorators = len(ewmaDecorators) != 0 | |
| 378 | 379 | select { |
| 379 | 380 | case b.operateState <- func(s *bState) { |
| 380 | 381 | s.averageDecorators = averageDecorators |
| 381 | 382 | s.ewmaDecorators = ewmaDecorators |
| 382 | 383 | s.shutdownListeners = shutdownListeners |
| 383 | 384 | }: |
| 384 | b.hasEwmaDecorators = len(ewmaDecorators) != 0 | |
| 385 | 385 | case <-b.done: |
| 386 | 386 | } |
| 387 | 387 | } |