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