MCPcopy
hub / github.com/syncthing/syncthing / SchedulePull

Method SchedulePull

lib/model/folder.go:304–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302}
303
304func (f *folder) SchedulePull() {
305 select {
306 case f.pullScheduled <- struct{}{}:
307 default:
308 // We might be busy doing a pull and thus not reading from this
309 // channel. The channel is 1-buffered, so one notification will be
310 // queued to ensure we recheck after the pull, but beyond that we must
311 // make sure to not block index receiving.
312 }
313}
314
315func (*folder) Jobs(_, _ int) ([]string, []string, int) {
316 return nil, nil, 0

Callers 2

scanSubdirsMethod · 0.95
setErrorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected