Commit 5ea39b1c authored by Gabriel Mazetto's avatar Gabriel Mazetto

Geo lib should list more than one secondary nodes

parent 4bab5728
......@@ -13,7 +13,7 @@ module Gitlab
end
def self.secondary_nodes
RequestStore.store[:geo_secondary_nodes] ||= GeoNode.find_by(primary: false)
RequestStore.store[:geo_secondary_nodes] ||= GeoNode.where(primary: false)
end
def self.enabled?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment