Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions src/Enyim.Caching/Configuration/MemcachedClientConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ public MemcachedClientConfiguration(
}
#endif

_useLegacyNodeLocator = options.UseLegacyNodeLocator;
ConfigureServers(options);
if (NodeLocator == null)
{
SetNodeLocator();
}

SocketPool = new SocketPoolConfiguration();
if (options.SocketPool != null)
Expand Down Expand Up @@ -155,12 +160,6 @@ public MemcachedClientConfiguration(
_logger.LogDebug($"Use KeyTransformer Type : '{keyTransformer}'");
}

_useLegacyNodeLocator = options.UseLegacyNodeLocator;
if (NodeLocator == null)
{
SetNodeLocator();
}

if (!string.IsNullOrEmpty(options.Transcoder))
{
try
Expand Down Expand Up @@ -234,7 +233,7 @@ private void SetNodeLocator()
NodeLocator = typeof(SingleNodeLocator);
}

_logger.LogDebug("Use NodeLocator: {NodeLocator}", NodeLocator);
_logger.LogDebug("Use NodeLocator: {NodeLocator}. Current server count: {serverCount}", NodeLocator, Servers.Count);
}

/// <summary>
Expand Down
Loading