Fix logic for findFiles() and keep archive worker

This commit is contained in:
Aditya Ujeniya
2026-01-15 20:27:11 +01:00
parent 40bff1eff9
commit 10a5c89a16
4 changed files with 57 additions and 16 deletions

View File

@@ -144,7 +144,11 @@ func Init(rawConfig json.RawMessage, wg *sync.WaitGroup) {
dataStagingGoroutines := 1
archivingGoroutines := 1
totalGoroutines := retentionGoroutines + checkpointingGoroutines + dataStagingGoroutines + archivingGoroutines
totalGoroutines := retentionGoroutines +
checkpointingGoroutines +
dataStagingGoroutines +
archivingGoroutines
wg.Add(totalGoroutines)
Retention(wg, ctx)