actionLoop handles the actions from running processes
()
| 51 | |
| 52 | // actionLoop handles the actions from running processes |
| 53 | func (s *AppService) actionLoop() { |
| 54 | for { |
| 55 | select { |
| 56 | case c := <-s.configUpdateChan: |
| 57 | s.handleConfigUpdate(c) |
| 58 | case <-s.shutdownC: |
| 59 | for _, service := range s.serviceManager.Services() { |
| 60 | service.Shutdown() |
| 61 | } |
| 62 | return |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | func (s *AppService) handleConfigUpdate(c config.Root) { |
| 68 | // handle the client forward listeners |
no test coverage detected