1
0
Fork 0

Make the staple updates continuous

This commit is contained in:
Romain 2025-10-10 12:10:05 +02:00 committed by GitHub
parent c948417866
commit fe730d3ad9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}
} }
} }