Function
NewWorker
(
sm IStorageManager,
fetch es.FetchBlobFunc,
l1 IL1,
lg log.Logger,
)
Source from the content-addressed store, hash-verified
| 43 | } |
| 44 | |
| 45 | func NewWorker( |
| 46 | sm IStorageManager, |
| 47 | fetch es.FetchBlobFunc, |
| 48 | l1 IL1, |
| 49 | lg log.Logger, |
| 50 | ) *Worker { |
| 51 | return &Worker{ |
| 52 | sm: sm, |
| 53 | fetchBlob: fetch, |
| 54 | l1: l1, |
| 55 | lg: lg, |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | func (s *Worker) scanBatch(ctx context.Context, runtime *scanLoopRuntime, updateStatus statusUpdateFn) error { |
| 60 | start := time.Now() |
Tested by
no test coverage detected