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,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.