remove grpc from common calls to reduce locking
This commit is contained in:
@@ -41,7 +41,7 @@ public class MareConfigurationServiceClient<T> : IConfigurationService<T> where
|
|||||||
if (isRemote)
|
if (isRemote)
|
||||||
{
|
{
|
||||||
_readLock.Wait();
|
_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();
|
_readLock.Release();
|
||||||
return (T1)_cachedRemoteProperties[key].Value;
|
return (T1)_cachedRemoteProperties[key].Value;
|
||||||
|
|||||||
Reference in New Issue
Block a user