File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -356,7 +356,9 @@ def hash
356356 # that the driver will communicate with for sharded topologies. If this
357357 # option is 0, then there will be no maximum number of mongoses. If the
358358 # given URI resolves to more hosts than ``:srv_max_hosts``, the client
359- # will ramdomly choose an ``:srv_max_hosts`` sized subset of hosts.
359+ # will randomly choose an ``:srv_max_hosts`` sized subset of hosts. If
360+ # srvMaxHosts is provided in the URI options, it takes precedence over this
361+ # option.
360362 # @option options [ String ] :srv_service_name The service name to use in
361363 # the SRV DNS query.
362364 # @option options [ true, false ] :ssl Whether to use TLS.
Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ def parse!(remaining)
152152 log_debug "attempting to resolve #{ hostname } "
153153
154154 @srv_result = resolver . get_records (
155- hostname ,
156- uri_options [ :srv_service_name ] || options [ :srv_service_name ] ,
155+ hostname ,
156+ uri_options [ :srv_service_name ] || options [ :srv_service_name ] ,
157157 uri_options [ :srv_max_hosts ] || options [ :srv_max_hosts ]
158158 )
159159 if srv_result . empty?
You can’t perform that action at this time.
0 commit comments