MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / start

Method start

sqlchain/observer/service.go:212–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210}
211
212func (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
226func (s *Service) saveSubscriptionStatus(dbID proto.DatabaseID, count int32) (err error) {
227 log.WithFields(log.Fields{}).Debug("save subscription status")

Callers 2

subscribeMethod · 0.45
startServiceFunction · 0.45

Calls 1

unpackWorkerFunction · 0.85

Tested by

no test coverage detected