chore_: up re-evaluation interval to 8 hours to avoid Alchemy limit (#5228) (#5230)

This commit is contained in:
Jonathan Rainville 2024-05-24 16:21:56 -04:00 committed by GitHub
parent 4f493a533e
commit cc505d3018
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ const maxArchiveSizeInBytes = 30000000
var maxNbMembers = 5000 var maxNbMembers = 5000
var maxNbPendingRequestedMembers = 100 var maxNbPendingRequestedMembers = 100
var memberPermissionsCheckInterval = 1 * time.Hour var memberPermissionsCheckInterval = 8 * time.Hour
var validateInterval = 2 * time.Minute var validateInterval = 2 * time.Minute
// Used for testing only // Used for testing only
@ -1406,8 +1406,8 @@ func (m *Manager) reevaluateMembersLoop(communityID types.HexBytes, reevaluateOn
task.mutex.Lock() task.mutex.Lock()
defer task.mutex.Unlock() defer task.mutex.Unlock()
// Ensure reevaluation is performed not more often than once per minute // Ensure reevaluation is performed not more often than once per 5 minutes
if !force && task.lastSuccessTime.After(time.Now().Add(-1*time.Minute)) { if !force && task.lastSuccessTime.After(time.Now().Add(-5*time.Minute)) {
return false return false
} }