mirror of
https://github.com/traefik/traefik
synced 2026-02-03 11:10:33 +00:00
Make the staple updates continuous
This commit is contained in:
+9
-7
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user