@@ -117,8 +117,7 @@ internal const string
117117 Tunnel = "tunnel" ,
118118 SetClientLibrary = "setlib" ,
119119 Protocol = "protocol" ,
120- HighIntegrity = "highIntegrity" ,
121- Weight = "weight" ;
120+ HighIntegrity = "highIntegrity" ;
122121
123122 private static readonly Dictionary < string , string > normalizedOptions = new [ ]
124123 {
@@ -150,7 +149,6 @@ internal const string
150149 CheckCertificateRevocation ,
151150 Protocol ,
152151 HighIntegrity ,
153- Weight ,
154152 } . ToDictionary ( x => x , StringComparer . OrdinalIgnoreCase ) ;
155153
156154 public static string TryNormalize ( string value )
@@ -851,7 +849,6 @@ public static ConfigurationOptions Parse(string configuration, bool ignoreUnknow
851849 heartbeatInterval = heartbeatInterval ,
852850 heartbeatConsistencyChecks = heartbeatConsistencyChecks ,
853851 highIntegrity = highIntegrity ,
854- Weight = Weight ,
855852 } ;
856853
857854 /// <summary>
@@ -934,11 +931,6 @@ public string ToString(bool includePassword)
934931 Append ( sb , OptionKeys . SetClientLibrary , setClientLibrary ) ;
935932 Append ( sb , OptionKeys . HighIntegrity , highIntegrity ) ;
936933 Append ( sb , OptionKeys . Protocol , FormatProtocol ( Protocol ) ) ;
937- var weight = Weight ;
938- if ( ! float . IsNaN ( weight ) )
939- {
940- Append ( sb , OptionKeys . Weight , weight ) ;
941- }
942934 if ( Tunnel is { IsInbuilt : true } tunnel )
943935 {
944936 Append ( sb , OptionKeys . Tunnel , tunnel . ToString ( ) ) ;
@@ -995,7 +987,6 @@ private void Clear()
995987 ChannelPrefix = default ;
996988 SocketManager = null ;
997989 Tunnel = null ;
998- Weight = float . NaN ;
999990 }
1000991
1001992 object ICloneable . Clone ( ) => Clone ( ) ;
@@ -1107,9 +1098,6 @@ private ConfigurationOptions DoParse(string configuration, bool ignoreUnknown)
11071098 case OptionKeys . HighIntegrity :
11081099 HighIntegrity = OptionKeys . ParseBoolean ( key , value ) ;
11091100 break ;
1110- case OptionKeys . Weight :
1111- Weight = OptionKeys . ParseSingle ( key , value ) ;
1112- break ;
11131101 case OptionKeys . Tunnel :
11141102 if ( value . IsNullOrWhiteSpace ( ) )
11151103 {
@@ -1186,11 +1174,6 @@ private ConfigurationOptions DoParse(string configuration, bool ignoreUnknown)
11861174 /// </summary>
11871175 public RedisProtocol ? Protocol { get ; set ; }
11881176
1189- /// <summary>
1190- /// Specify the preference of this connection group relative to others.
1191- /// </summary>
1192- public float Weight { get ; set ; } = float . NaN ;
1193-
11941177 internal bool TryResp3 ( )
11951178 {
11961179 // note: deliberately leaving the IsAvailable duplicated to use short-circuit
0 commit comments