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)
|
||||
defer ticker.Stop()
|
||||
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
|
||||
case <-o.forceStapleUpdates:
|
||||
o.updateStaples(ctx)
|
||||
case <-o.forceStapleUpdates:
|
||||
o.updateStaples(ctx)
|
||||
|
||||
case <-ticker.C:
|
||||
o.updateStaples(ctx)
|
||||
case <-ticker.C:
|
||||
o.updateStaples(ctx)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue