lens @ 3b06cb010948c241b3c940b7d85e4390f2d93dd0

ref: Rename list to batch processor
diff --git a/cmd/server/main.go b/cmd/server/main.go
index 54a7ba05d479b9184ccf4c363fb1e4f091d68a75..473bed9c8f84206f027b3c505fb0260e04d5e627 100644
--- a/cmd/server/main.go
+++ b/cmd/server/main.go
@@ -119,7 +119,7 @@ 	// worker
 	var (
 		serverWorker = worker.NewServerWorker(&fasthttp.Server{Handler: r.Handler})
 		fileWorker   = worker.NewWorkerFromChanProcessor[string](fileScanner, scheduler)
-		exifWorker   = worker.NewWorkerFromListProcessor[*media.Media](
+		exifWorker   = worker.NewWorkerFromBatchProcessor[*media.Media](
 			exifScanner,
 			scheduler,
 			logrus.WithField("context", "exif scanner"),
diff --git a/pkg/worker/exif_scanner.go b/pkg/worker/exif_scanner.go
index d7865e39737f316d2fe38599868cd8bb9cf5ea6f..4aa247d832bb5261d0373c4fbb8bb8d90c73af02 100644
--- a/pkg/worker/exif_scanner.go
+++ b/pkg/worker/exif_scanner.go
@@ -13,7 +13,7 @@ 		repository media.Repository
 	}
 )
 
-var _ ListProcessor[*media.Media] = &EXIFScanner{}
+var _ BatchProcessor[*media.Media] = &EXIFScanner{}
 
 func NewEXIFScanner(repository media.Repository) *EXIFScanner {
 	return &EXIFScanner{
diff --git a/pkg/worker/list_processor.go b/pkg/worker/list_processor.go
index c9c20a9d5b27b2f855df75ce8e98527973c51a96..bbc9fb747c6192a137c133bb457b6a5771cb54c1 100644
--- a/pkg/worker/list_processor.go
+++ b/pkg/worker/list_processor.go
@@ -16,7 +16,7 @@ 		Query(context.Context) (<-chan T, error)
 		Process(context.Context, T) error
 	}
 
-	ListProcessor[T any] interface {
+	BatchProcessor[T any] interface {
 		Query(context.Context) ([]T, error)
 		Process(context.Context, T) error
 	}
@@ -26,38 +26,38 @@ 		chanProcessor ChanProcessor[T]
 		scheduler     *Scheduler
 	}
 
-	listProcessorWorker[T any] struct {
-		listProcessor ListProcessor[T]
-		logrus        *logrus.Entry
-		scheduler     *Scheduler
+	batchProcessorWorker[T any] struct {
+		batchProcessor BatchProcessor[T]
+		logrus         *logrus.Entry
+		scheduler      *Scheduler
 	}
 )
 
-func NewWorkerFromListProcessor[T any](
-	listProcessor ListProcessor[T],
+func NewWorkerFromBatchProcessor[T any](
+	batchProcessor BatchProcessor[T],
 	scheduler *Scheduler,
 	logrus *logrus.Entry,
 ) Worker {
-	return &listProcessorWorker[T]{
-		listProcessor: listProcessor,
-		scheduler:     scheduler,
-		logrus:        logrus,
+	return &batchProcessorWorker[T]{
+		batchProcessor: batchProcessor,
+		scheduler:      scheduler,
+		logrus:         logrus,
 	}
 }
 
 func NewWorkerFromChanProcessor[T any](
-	listProcessor ChanProcessor[T],
+	chanProcessor ChanProcessor[T],
 	scheduler *Scheduler,
 ) Worker {
 	return &chanProcessorWorker[T]{
-		chanProcessor: listProcessor,
+		chanProcessor: chanProcessor,
 		scheduler:     scheduler,
 	}
 }
 
-func (l *listProcessorWorker[T]) Start(ctx context.Context) error {
+func (l *batchProcessorWorker[T]) Start(ctx context.Context) error {
 	for {
-		values, err := l.listProcessor.Query(ctx)
+		values, err := l.batchProcessor.Query(ctx)
 		if err != nil {
 			return err
 		}
@@ -79,7 +79,7 @@ 			l.scheduler.Take()
 			go func(v T) {
 				defer l.scheduler.Return()
 				defer wg.Done()
-				if err := l.listProcessor.Process(ctx, v); err != nil && !errors.Is(err, context.Canceled) {
+				if err := l.batchProcessor.Process(ctx, v); err != nil && !errors.Is(err, context.Canceled) {
 					l.logrus.WithError(err).Error("Error processing batch")
 				}
 			}(v)