(archetype *baseservice.Archetype, subscribeCh <-chan []jobcompleter.CompleterJobUpdated)
| 31 | } |
| 32 | |
| 33 | func newSubscriptionManager(archetype *baseservice.Archetype, subscribeCh <-chan []jobcompleter.CompleterJobUpdated) *subscriptionManager { |
| 34 | return baseservice.Init(archetype, &subscriptionManager{ |
| 35 | subscribeCh: subscribeCh, |
| 36 | subscriptions: make(map[int]*eventSubscription), |
| 37 | }) |
| 38 | } |
| 39 | |
| 40 | // ResetSubscribeChan is used to change the channel that the subscription |
| 41 | // manager listens on. It must only be called when the subscription manager is |
searching dependent graphs…