MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / run

Method run

sqlchain/mirror/service.go:138–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136}
137
138func (s *Service) run() {
139 defer s.wg.Done()
140
141 var nextTick time.Duration
142
143 for {
144 select {
145 case <-s.stopCh:
146 return
147 case <-time.After(nextTick):
148 if err := s.pull(s.getProgress()); err != nil {
149 nextTick = conf.GConf.SQLChainPeriod
150 } else {
151 nextTick /= 10
152 }
153 }
154 }
155}
156
157func (s *Service) pull(count int32) (err error) {
158 var (

Callers 1

startMethod · 0.95

Calls 2

pullMethod · 0.95
getProgressMethod · 0.95

Tested by

no test coverage detected