Include worker stats to ProcessState

This commit is contained in:
Ken Hibino
2020-02-20 07:44:13 -08:00
parent 9e02a91808
commit e3c9aae8c7
4 changed files with 192 additions and 22 deletions

View File

@@ -52,8 +52,8 @@ func (s *subscriber) start(wg *sync.WaitGroup) {
logger.info("Subscriber done")
return
case msg := <-cancelCh:
cancel := s.cancelations.Get(msg.Payload)
if cancel != nil {
cancel, ok := s.cancelations.Get(msg.Payload)
if ok {
cancel()
}
}