fix: address code review findings

This commit is contained in:
2026-07-19 19:11:22 +03:00
parent c70f46af27
commit f1839ad9e7
3 changed files with 8 additions and 13 deletions

View File

@@ -97,8 +97,8 @@ func (a *App) Close() {
func (a *App) run(ctx context.Context) error {
// Compute-only scanner hook: scan all monitored artists for missing
// releases and log the count. Notifier/Web UI are out of scope for this
// plan, so results are only logged. This call is non-blocking and
// goroutine-safe; it observes ctx cancellation and returns early.
// plan, so results are only logged. ScanAll is a blocking DB walk over
// every monitored artist; it observes ctx cancellation and returns early.
missing, err := scanner.ScanAll(ctx, a.db, a.cfg.Scanner.FuzzyThreshold)
if err != nil {
if ctx.Err() != nil {