feat: add batch update support (close #414)

This commit is contained in:
JustSong
2023-09-03 14:58:20 +08:00
parent 04acdb1ccb
commit c3dc315e75
7 changed files with 136 additions and 1 deletions

View File

@@ -94,6 +94,9 @@ var RequestInterval = time.Duration(requestInterval) * time.Second
var SyncFrequency = 10 * 60 // unit is second, will be overwritten by SYNC_FREQUENCY
var BatchUpdateEnabled = false
var BatchUpdateInterval = GetOrDefault("BATCH_UPDATE_INTERVAL", 5)
const (
RoleGuestUser = 0
RoleCommonUser = 1