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

This commit is contained in:
JustSong committed 2023-07-23 19:26:37 +08:00
1 parent 04b8b4124a
commit 819056a8af
3 files changed
+13 -10

No files matched your search

+2
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