MCPcopy
hub / github.com/syncthing/syncthing / scanTimerFired

Method scanTimerFired

lib/model/folder.go:972–989  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

970}
971
972func (f *folder) scanTimerFired(ctx context.Context) error {
973 err := f.scanSubdirs(ctx, nil)
974
975 select {
976 case <-f.initialScanFinished:
977 default:
978 if err != nil {
979 f.sl.ErrorContext(ctx, "Failed initial scan", slogutil.Error(err))
980 } else {
981 f.sl.InfoContext(ctx, "Completed initial scan")
982 }
983 close(f.initialScanFinished)
984 }
985
986 f.Reschedule()
987
988 return err
989}
990
991func (f *folder) versionCleanupTimerFired(ctx context.Context) {
992 f.setState(FolderCleanWaiting)

Callers 1

ServeMethod · 0.95

Calls 3

scanSubdirsMethod · 0.95
RescheduleMethod · 0.95
ErrorFunction · 0.92

Tested by

no test coverage detected