MCPcopy
hub / github.com/tuna/tunasync / initJobs

Method initJobs

worker/worker.go:159–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157}
158
159func (w *Worker) initJobs() {
160 for _, mirror := range w.cfg.Mirrors {
161 // Create Provider
162 provider := newMirrorProvider(mirror, w.cfg)
163 w.jobs[provider.Name()] = newMirrorJob(provider)
164 }
165}
166
167func (w *Worker) disableJob(job *mirrorJob) {
168 w.schedule.Remove(job.Name())

Callers 1

NewTUNASyncWorkerFunction · 0.95

Calls 3

newMirrorProviderFunction · 0.85
newMirrorJobFunction · 0.85
NameMethod · 0.65

Tested by

no test coverage detected