mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-20 18:10:59 +00:00
Fix for rate limiter resetting
This commit is contained in:
@@ -175,6 +175,12 @@ namespace CryptoExchange.Net.RateLimiting.Guards
|
||||
/// <inheritdoc />
|
||||
public void Reset(RateLimitItemType type, RequestDefinition definition, string host, string? apiKey, string? keySuffix)
|
||||
{
|
||||
foreach (var filter in _filters)
|
||||
{
|
||||
if (!filter.Passes(type, definition, host, apiKey))
|
||||
return;
|
||||
}
|
||||
|
||||
if (SharedGuard)
|
||||
_sharedGuardSemaphore!.Wait();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user