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
+9 -7
View File
@@ -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)
}
}
}