chore: do not hardcode cache time (close #302)

This commit is contained in:
JustSong
2023-07-23 19:26:37 +08:00
parent 4ab3211c0e
commit 4eea096654
3 changed files with 13 additions and 10 deletions

View File

@@ -77,6 +77,8 @@ var IsMasterNode = os.Getenv("NODE_TYPE") != "slave"
var requestInterval, _ = strconv.Atoi(os.Getenv("POLLING_INTERVAL"))
var RequestInterval = time.Duration(requestInterval) * time.Second
var SyncFrequency = 10 * 60 // unit is second, will be overwritten by SYNC_FREQUENCY
const (
RoleGuestUser = 0
RoleCommonUser = 1