mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 17:07:22 +01:00
remove grpc from common calls to reduce locking
This commit is contained in:
parent
761f208828
commit
097d7d16e9
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ public class MareConfigurationServiceClient<T> : IConfigurationService<T> where
|
|||
if (isRemote)
|
||||
{
|
||||
_readLock.Wait();
|
||||
if (_cachedRemoteProperties.TryGetValue(key, out var existingEntry) && existingEntry.Inserted > DateTime.Now - TimeSpan.FromMinutes(60))
|
||||
if (_cachedRemoteProperties.TryGetValue(key, out var existingEntry))
|
||||
{
|
||||
_readLock.Release();
|
||||
return (T1)_cachedRemoteProperties[key].Value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue