MCPcopy Create free account
hub / github.com/ethstorage/es-node / NewWorker

Function NewWorker

ethstorage/scanner/worker.go:45–57  ·  view source on GitHub ↗
(
	sm IStorageManager,
	fetch es.FetchBlobFunc,
	l1 IL1,
	lg log.Logger,
)

Source from the content-addressed store, hash-verified

43}
44
45func 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
59func (s *Worker) scanBatch(ctx context.Context, runtime *scanLoopRuntime, updateStatus statusUpdateFn) error {
60 start := time.Now()

Callers 1

NewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected