Magic numbers in schedule logic #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Low
crates/domain/src/services/schedule/mod.rshas.with_limit(10_000)hardcoded inline inmedia_filter_to_library_search. Should be a named constant or configurable.crates/domain/src/services/schedule/fill.rshasif idx > ordered.len() * 100 { break; }— an undocumented safety valve with a magic multiplier.Extract these into named constants with comments explaining the rationale.