Method
runMaintenanceTask
(ctx context.Context, dr repo.DirectRepository)
Source from the content-addressed store, hash-verified
| 30 | } |
| 31 | |
| 32 | func (s *testServer) runMaintenanceTask(ctx context.Context, dr repo.DirectRepository) error { |
| 33 | s.runCounter.Add(1) |
| 34 | |
| 35 | if s.log != nil { |
| 36 | s.log("runMaintenanceTask") |
| 37 | } |
| 38 | |
| 39 | s.mu.Lock() |
| 40 | ne := s.err |
| 41 | s.err = nil |
| 42 | s.mu.Unlock() |
| 43 | |
| 44 | return ne |
| 45 | } |
| 46 | |
| 47 | func (s *testServer) refreshScheduler(reason string) { |
| 48 | s.refreshSchedulerCount.Add(1) |
Callers
nothing calls this directly
Tested by
no test coverage detected