forked from mystiq/dex
server: fix key rotation polling
This commit is contained in:
parent
3e94e65b68
commit
d8033999d5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue