mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
server: fix key rotation polling
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ func startKeyRotation(ctx context.Context, s storage.Storage, strategy rotationS
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
case <-time.After(strategy.period):
|
||||
case <-time.After(time.Second * 30):
|
||||
if err := rotater.rotate(); err != nil {
|
||||
log.Printf("failed to rotate keys: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user