mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-13 13:04:16 +01:00
add cache miss when cache isn't built yet
This commit is contained in:
parent
8ce6f17996
commit
2eeeb748a0
1 changed files with 3 additions and 0 deletions
|
|
@ -46,7 +46,10 @@ public class OnlineSyncedPairCacheService : IHostedService
|
||||||
if (ct.IsCancellationRequested)
|
if (ct.IsCancellationRequested)
|
||||||
return false;
|
return false;
|
||||||
if (!_lastSeenCache.TryGetValue(sender, out var senderCache))
|
if (!_lastSeenCache.TryGetValue(sender, out var senderCache))
|
||||||
|
{
|
||||||
|
_mareMetrics.IncCounter(MetricsAPI.CounterUserPairCacheMiss);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
lock (senderCache)
|
lock (senderCache)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue