Remove feature flag from container repository registry finder

parent 0d013cc9
...@@ -7,11 +7,11 @@ module Geo ...@@ -7,11 +7,11 @@ module Geo
end end
def count_synced def count_synced
registries.merge(Geo::ContainerRepositoryRegistry.synced).count Geo::ContainerRepositoryRegistry.synced.count
end end
def count_failed def count_failed
registries.merge(Geo::ContainerRepositoryRegistry.failed).count Geo::ContainerRepositoryRegistry.failed.count
end end
def count_registry def count_registry
...@@ -91,15 +91,5 @@ module Geo ...@@ -91,15 +91,5 @@ module Geo
.pluck_container_repository_key .pluck_container_repository_key
end end
# rubocop:enable CodeReuse/ActiveRecord # rubocop:enable CodeReuse/ActiveRecord
private
def registries
if Geo::ContainerRepositoryRegistry.registry_consistency_worker_enabled?
Geo::ContainerRepositoryRegistry.all
else
current_node_fdw.container_repositories.inner_join_container_repository_registry
end
end
end end
end end
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