diff --git a/src/FreeRedis/RedisClient/Adapter/ClusterAdapter.cs b/src/FreeRedis/RedisClient/Adapter/ClusterAdapter.cs index 4f65d03..bfb07f2 100644 --- a/src/FreeRedis/RedisClient/Adapter/ClusterAdapter.cs +++ b/src/FreeRedis/RedisClient/Adapter/ClusterAdapter.cs @@ -33,10 +33,9 @@ public ClusterAdapter(RedisClient topOwner, ConnectionStringBuilder[] clusterCon foreach (var kv in hostMappings) _hostMappings.Add(kv.Key, kv.Value); } - _hostMappings = hostMappings; _baseEncoding = _clusterConnectionStrings.FirstOrDefault()?.Encoding; _ib = new IdleBus(TimeSpan.FromMinutes(10)); - RefershClusterNodes(); + RefreshClusterNodes(); } bool isdisposed = false; @@ -281,7 +280,7 @@ async public override Task AdapterCallAsync(CommandPacket cmd, F } #endif - void RefershClusterNodes() + void RefreshClusterNodes() { Exception clusterException = null; foreach (var testConnection in _clusterConnectionStrings)