fix: address code review findings

This commit is contained in:
Mrixs committed 2026-07-19 19:11:22 +03:00
1 parent c70f46af27
commit f1839ad9e7
3 files changed
+8 -13

No files matched your search

+2 -2
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 {