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

Method getAllSubscriptions

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

Source from the content-addressed store, hash-verified

660}
661
662func (s *Service) getAllSubscriptions() (subscriptions map[proto.DatabaseID]int32, err error) {
663 subscriptions = map[proto.DatabaseID]int32{}
664 s.subscription.Range(func(_, rawWorker interface{}) bool {
665 worker := unpackWorker(rawWorker)
666 subscriptions[worker.dbID] = worker.getHead()
667 return true
668 })
669
670 return
671}

Callers 1

GetAllSubscriptionsMethod · 0.80

Calls 2

unpackWorkerFunction · 0.85
getHeadMethod · 0.45

Tested by

no test coverage detected