()
| 210 | } |
| 211 | |
| 212 | func (s *Service) start() (err error) { |
| 213 | if atomic.LoadInt32(&s.stopped) == 1 { |
| 214 | // stopped |
| 215 | return ErrStopped |
| 216 | } |
| 217 | |
| 218 | s.subscription.Range(func(_, rawWorker interface{}) bool { |
| 219 | unpackWorker(rawWorker).start() |
| 220 | return true |
| 221 | }) |
| 222 | |
| 223 | return nil |
| 224 | } |
| 225 | |
| 226 | func (s *Service) saveSubscriptionStatus(dbID proto.DatabaseID, count int32) (err error) { |
| 227 | log.WithFields(log.Fields{}).Debug("save subscription status") |
no test coverage detected