Завершил работу с RateLimiter
Create and publish a Docker image / Publish image (push) Successful in 4m35s

This commit is contained in:
serega404 committed 2025-09-06 23:37:14 +03:00
1 parent bb2e6a24d7
commit dba9b516b8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2,5 +2,5 @@
## TODO
- [ ] Добавить RateLimiter
- [x] Добавить RateLimiter
- [ ] Добавить обработку ошибок при запросах к modeus
+1 -1
View File
@@ -82,7 +82,7 @@ builder.Services.AddRateLimiter(options =>
: (httpContext.Connection.RemoteIpAddress?.ToString() ?? "unknown"),
factory: _ => new FixedWindowRateLimiterOptions
{
PermitLimit = 20,
PermitLimit = 40,
Window = TimeSpan.FromSeconds(10)
}));