mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: properly set limiter
This commit is contained in:
@@ -139,7 +139,7 @@ namespace SharpbinV3.Server
|
|||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
||||||
options.AddPolicy("NoLimit", _ => RateLimitPartition.GetNoLimiter());
|
options.AddPolicy("NoLimit", _ => RateLimitPartition.GetNoLimiter(0));
|
||||||
|
|
||||||
options.GlobalLimiter = PartitionedRateLimiter.Create<HttpContext, string>(httpContext =>
|
options.GlobalLimiter = PartitionedRateLimiter.Create<HttpContext, string>(httpContext =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user