@@ -259,13 +259,13 @@ var (
259259// NewUniversalClient returns a new multi client. The type of the returned client depends
260260// on the following conditions:
261261//
262- // 1. If the MasterName option is specified with RouteByLatency, RouteRandomly or IsClusterMode,
263- // a FailoverClusterClient is returned.
264- // 2. If the MasterName option is specified without RouteByLatency, RouteRandomly or IsClusterMode,
265- // a sentinel-backed FailoverClient is returned.
266- // 3. If the number of Addrs is two or more, or IsClusterMode option is specified,
267- // a ClusterClient is returned.
268- // 4. Otherwise, a single-node Client is returned.
262+ // 1. If the MasterName option is specified with RouteByLatency, RouteRandomly or IsClusterMode,
263+ // a FailoverClusterClient is returned.
264+ // 2. If the MasterName option is specified without RouteByLatency, RouteRandomly or IsClusterMode,
265+ // a sentinel-backed FailoverClient is returned.
266+ // 3. If the number of Addrs is two or more, or IsClusterMode option is specified,
267+ // a ClusterClient is returned.
268+ // 4. Otherwise, a single-node Client is returned.
269269func NewUniversalClient (opts * UniversalOptions ) UniversalClient {
270270 switch {
271271 case opts .MasterName != "" && (opts .RouteByLatency || opts .RouteRandomly || opts .IsClusterMode ):
0 commit comments