mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
Do not export function in config.
This commit is contained in:
parent
fd0ae57443
commit
696fb74b36
2 changed files with 3 additions and 3 deletions
|
|
@ -86,9 +86,9 @@ type config struct {
|
||||||
keyErr error
|
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.
|
// 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 {
|
if c.InterimYears <= 0 {
|
||||||
return func(time.Time) bool { return false }
|
return func(time.Time) bool { return false }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,7 @@ func (w *worker) interimWork(wg *sync.WaitGroup, jobs <-chan *interimJob) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
path := filepath.Join(w.processor.cfg.Web, ".well-known", "csaf-aggregator")
|
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 {
|
for j := range jobs {
|
||||||
w.setupProviderInterim(j.provider)
|
w.setupProviderInterim(j.provider)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue