Make the staple updates continuous
This commit is contained in:
parent
c948417866
commit
fe730d3ad9
1 changed files with 9 additions and 7 deletions
|
|
@ -49,15 +49,17 @@ func (o *ocspStapler) Run(ctx context.Context) {
|
||||||
ticker := time.NewTicker(time.Hour)
|
ticker := time.NewTicker(time.Hour)
|
||||||
defer ticker.Stop()
|
defer ticker.Stop()
|
||||||
|
|
||||||
select {
|
for {
|
||||||
case <-ctx.Done():
|
select {
|
||||||
return
|
case <-ctx.Done():
|
||||||
|
return
|
||||||
|
|
||||||
case <-o.forceStapleUpdates:
|
case <-o.forceStapleUpdates:
|
||||||
o.updateStaples(ctx)
|
o.updateStaples(ctx)
|
||||||
|
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
o.updateStaples(ctx)
|
o.updateStaples(ctx)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue