avoid too large expiration time

This commit is contained in:
Chris Lu
2024-02-04 09:20:21 -08:00
parent 1b5ba4190c
commit 0a12301b3d
4 changed files with 118 additions and 84 deletions

View File

@@ -7,7 +7,8 @@ import (
"time"
)
const MaxDuration = time.Hour * 24 * 365 * 100
const RenewInterval = time.Second * 3
const LiveLockTTL = time.Second * 7
var NoLockServerError = fmt.Errorf("no lock server found")