server: fix key rotation polling
This commit is contained in:
parent
3e94e65b68
commit
d8033999d5
@ -76,7 +76,7 @@ func startKeyRotation(ctx context.Context, s storage.Storage, strategy rotationS
|
|||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return
|
return
|
||||||
case <-time.After(strategy.period):
|
case <-time.After(time.Second * 30):
|
||||||
if err := rotater.rotate(); err != nil {
|
if err := rotater.rotate(); err != nil {
|
||||||
log.Printf("failed to rotate keys: %v", err)
|
log.Printf("failed to rotate keys: %v", err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user