From 696fb74b363cc2fda1c98cd6eff272bd0bbc37ee Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Wed, 3 Aug 2022 15:32:05 +0200 Subject: [PATCH] Do not export function in config. --- cmd/csaf_aggregator/config.go | 4 ++-- cmd/csaf_aggregator/interim.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)