Make the staple updates continuous
This commit is contained in:
parent
c948417866
commit
fe730d3ad9
1 changed files with 9 additions and 7 deletions
|
|
@ -49,6 +49,7 @@ func (o *ocspStapler) Run(ctx context.Context) {
|
||||||
ticker := time.NewTicker(time.Hour)
|
ticker := time.NewTicker(time.Hour)
|
||||||
defer ticker.Stop()
|
defer ticker.Stop()
|
||||||
|
|
||||||
|
for {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return
|
return
|
||||||
|
|
@ -60,6 +61,7 @@ func (o *ocspStapler) Run(ctx context.Context) {
|
||||||
o.updateStaples(ctx)
|
o.updateStaples(ctx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ForceStapleUpdates triggers staple updates in the background instead of waiting for the Run routine to update them.
|
// ForceStapleUpdates triggers staple updates in the background instead of waiting for the Run routine to update them.
|
||||||
func (o *ocspStapler) ForceStapleUpdates() {
|
func (o *ocspStapler) ForceStapleUpdates() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue