chore: update env name and README

This commit is contained in:
1808837298@qq.com
2025-02-19 15:54:33 +08:00
parent 585c19fc70
commit 90191b8d5b
4 changed files with 8 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ func checkRedisLimit(userId int, notifyType string) (bool, error) {
}
currentCount, _ := strconv.Atoi(count)
limit := constant.DefaultNotifyHourlyLimit
limit := constant.NotifyLimitCount
// Check if limit is already reached
if currentCount >= limit {
@@ -107,7 +107,7 @@ func checkMemoryLimit(userId int, notifyType string) (bool, error) {
currentLimit.Count++
// Check against limits
limit := constant.DefaultNotifyHourlyLimit
limit := constant.NotifyLimitCount
// Store updated count
notifyLimitStore.Store(key, currentLimit)