2025-07-01 13:32:55: merge [main:6491e79afd06cd665731c89f8ab2cd373351c1b4];

This commit is contained in:
txix committed 2025-07-01 13:32:55 +03:00
1 parent f699aefa58
commit 264b438cdb
12 files changed
+161 -94

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ func (r DailyLimit) Increment(ctx context.Context, applicationId int, today time
}
if value == 1 {
err := r.cli.ExpireNX(ctx, key, 24*time.Hour).Err() //nolint:mnd,gomnd
err := r.cli.ExpireNX(ctx, key, 24*time.Hour).Err() //nolint:mnd
if err != nil {
return 0, errors.WithMessage(err, "expire nx")
}