mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 15:07:23 +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)
|
||||
return false;
|
||||
if (!_lastSeenCache.TryGetValue(sender, out var senderCache))
|
||||
{
|
||||
_mareMetrics.IncCounter(MetricsAPI.CounterUserPairCacheMiss);
|
||||
return false;
|
||||
}
|
||||
|
||||
lock (senderCache)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue