(ctx context.Context)
| 970 | } |
| 971 | |
| 972 | func (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 | |
| 991 | func (f *folder) versionCleanupTimerFired(ctx context.Context) { |
| 992 | f.setState(FolderCleanWaiting) |
no test coverage detected