# File lib/moped/read_preference/secondary_preferred.rb, line 42 def with_node(cluster, &block) with_retry(cluster) do begin cluster.with_secondary(&block) rescue Errors::ConnectionFailure cluster.with_primary(&block) end end end