Remove unused argument on Geo::FileDownloadDispatchWorker

parent 8efa421a
...@@ -9,14 +9,13 @@ module Geo ...@@ -9,14 +9,13 @@ module Geo
end end
def load_pending_resources def load_pending_resources
restricted_project_ids = Gitlab::Geo.current_node.project_ids lfs_object_ids = find_lfs_object_ids
lfs_object_ids = find_lfs_object_ids(restricted_project_ids) objects_ids = find_object_ids
objects_ids = find_object_ids(restricted_project_ids)
interleave(lfs_object_ids, objects_ids) interleave(lfs_object_ids, objects_ids)
end end
def find_object_ids(restricted_project_ids) def find_object_ids
downloaded_ids = find_downloaded_ids([:attachment, :avatar, :file]) downloaded_ids = find_downloaded_ids([:attachment, :avatar, :file])
current_node.uploads current_node.uploads
...@@ -27,7 +26,7 @@ module Geo ...@@ -27,7 +26,7 @@ module Geo
.map { |id, uploader| [id, uploader.sub(/Uploader\z/, '').downcase] } .map { |id, uploader| [id, uploader.sub(/Uploader\z/, '').downcase] }
end end
def find_lfs_object_ids(restricted_project_ids) def find_lfs_object_ids
downloaded_ids = find_downloaded_ids([:lfs]) downloaded_ids = find_downloaded_ids([:lfs])
current_node.lfs_objects current_node.lfs_objects
......
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