mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 16:47:22 +01:00
fix bug
This commit is contained in:
parent
8ac0c26de9
commit
5754fdf5bc
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ public sealed class ConcurrencyFilter : IHubFilter, IDisposable
|
||||||
var token = _cancellationToken.Token;
|
var token = _cancellationToken.Token;
|
||||||
while (!token.IsCancellationRequested)
|
while (!token.IsCancellationRequested)
|
||||||
{
|
{
|
||||||
mareMetrics.SetGaugeTo(MetricsAPI.GaugeHubConcurrency, _limiter.CurrentCount);
|
mareMetrics.SetGaugeTo(MetricsAPI.GaugeHubConcurrency, _limiter?.CurrentCount ?? 0);
|
||||||
await Task.Delay(TimeSpan.FromSeconds(1)).ConfigureAwait(false);
|
await Task.Delay(TimeSpan.FromSeconds(1)).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue