server: fix key rotation polling

This commit is contained in:
Eric Chiang 2016-10-17 10:47:47 -07:00
parent 3e94e65b68
commit d8033999d5

View file

@ -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)
}