ソースを参照

change rotate time

Marcus Efraimsson 7 年 前
コミット
766cfab374
1 ファイル変更2 行追加2 行削除
  1. 2 2
      pkg/services/auth/auth_token.go

+ 2 - 2
pkg/services/auth/auth_token.go

@@ -21,8 +21,8 @@ func init() {
 
 var (
 	now              = time.Now
-	RotateTime       = 10 * time.Second
-	UrgentRotateTime = 5 * time.Second
+	RotateTime       = 1 * time.Minute
+	UrgentRotateTime = 30 * time.Second
 )
 
 // UserAuthTokenService are used for generating and validating user auth tokens