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)
|
||||
defer ticker.Stop()
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
|
|
@ -59,6 +60,7 @@ func (o *ocspStapler) Run(ctx context.Context) {
|
|||
case <-ticker.C:
|
||||
o.updateStaples(ctx)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ForceStapleUpdates triggers staple updates in the background instead of waiting for the Run routine to update them.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue