diff --git a/cmd/csaf_aggregator/config.go b/cmd/csaf_aggregator/config.go index 7e3c8a3..3943a44 100644 --- a/cmd/csaf_aggregator/config.go +++ b/cmd/csaf_aggregator/config.go @@ -86,9 +86,9 @@ type config struct { keyErr error } -// TooOldForInterims returns a function that tells if a given +// tooOldForInterims returns a function that tells if a given // time is too old for the configured interims interval. -func (c *config) TooOldForInterims() func(time.Time) bool { +func (c *config) tooOldForInterims() func(time.Time) bool { if c.InterimYears <= 0 { return func(time.Time) bool { return false } } diff --git a/cmd/csaf_aggregator/interim.go b/cmd/csaf_aggregator/interim.go index 4ca23b8..5b56aab 100644 --- a/cmd/csaf_aggregator/interim.go +++ b/cmd/csaf_aggregator/interim.go @@ -173,7 +173,7 @@ func (w *worker) interimWork(wg *sync.WaitGroup, jobs <-chan *interimJob) { defer wg.Done() path := filepath.Join(w.processor.cfg.Web, ".well-known", "csaf-aggregator") - tooOld := w.processor.cfg.TooOldForInterims() + tooOld := w.processor.cfg.tooOldForInterims() for j := range jobs { w.setupProviderInterim(j.provider)