优化过期IP清理

This commit is contained in:
GoEdgeLab
2022-02-14 09:00:24 +08:00
parent 5b57ecae29
commit 2e04788c91
3 changed files with 10 additions and 8 deletions

View File

@@ -444,7 +444,7 @@ func (this *IPItemDAO) CleanExpiredIPItems(tx *dbs.Tx) error {
Where("(expiredAt>0 AND expiredAt<=:timestamp)").
Param("timestamp", time.Now().Unix()).
State(IPItemStateEnabled).
Limit(100).
Limit(500).
FindOnes()
if err != nil {
return err