summaryrefslogtreecommitdiff
path: root/internal/service/scan.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-09 20:27:31 +0300
committerPaul Buetow <paul@buetow.org>2026-05-09 20:27:31 +0300
commitcbaa2bf0137790c525c888e4e6363833a1d7cbc7 (patch)
treec014df1de74e1c7c7c44284b193e5cc92f8894ae /internal/service/scan.go
parent2acb23a01a9382452ec82396f87e2e76c49fca14 (diff)
s1 fix immediate scan progress state
Diffstat (limited to 'internal/service/scan.go')
-rw-r--r--internal/service/scan.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/service/scan.go b/internal/service/scan.go
index 2a56f93..d2cc5bb 100644
--- a/internal/service/scan.go
+++ b/internal/service/scan.go
@@ -53,6 +53,7 @@ func (s *scanService) TriggerRescan(ctx context.Context) error {
scanCtx, cancel := context.WithTimeout(s.appCtx, 30*time.Minute)
s.scanCancel = cancel
progress := &model.ScanProgress{}
+ progress.Start(0)
s.progress = progress
s.mu.Unlock()