chore: update env name and README

This commit is contained in:
1808837298@qq.com
2025-02-19 15:54:33 +08:00
parent 67f02e0a6a
commit 8a34d61654
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)