Skip to content

fix(config): unify library_sync_concurrency default to 5#617

Merged
javi11 merged 1 commit into
mainfrom
session/heuristic-maxwell-90202b
May 25, 2026
Merged

fix(config): unify library_sync_concurrency default to 5#617
javi11 merged 1 commit into
mainfrom
session/heuristic-maxwell-90202b

Conversation

@javi11
Copy link
Copy Markdown
Owner

@javi11 javi11 commented May 25, 2026

Summary

Fixes #616 — the library_sync_concurrency default was inconsistent across three locations (sample comment said 1, the accessor returned 5, the inline fallbacks at the call sites used 10).

  • Both call sites in internal/health/library_sync.go now route through cfg.GetLibrarySyncConcurrency() instead of duplicating an inline <=0 → 10 fallback.
  • config.sample.yaml comment updated from default: 1 to default: 5 to match the accessor.
  • The accessor (internal/config/accessors.go) is now the single source of truth, returning 5 when unset. This also aligns with the existing example in docs/docs/3. Configuration/health-monitoring.md.

Test plan

  • go build ./internal/health/... ./internal/config/... — clean
  • go vet ./internal/health/... ./internal/config/... — clean
  • Confirm reviewer is happy with 5 (vs 10) as the canonical default

Consolidate three divergent defaults (sample: 1, accessor: 5, inline: 10)
by routing both call sites through GetLibrarySyncConcurrency() and updating
the sample config comment to match the accessor's default of 5.

Fixes #616
@javi11 javi11 merged commit 7589dd5 into main May 25, 2026
2 checks passed
@javi11 javi11 deleted the session/heuristic-maxwell-90202b branch May 25, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(config): library_sync_concurrency default in sample/accessor/inline is inconsistent

1 participant