Memoize the value of Geo::BaseSyncService#primary_ssh_path_prefix

parent 70b92d79
......@@ -71,7 +71,7 @@ module Geo
end
def primary_ssh_path_prefix
Gitlab::Geo.primary_node.clone_url_prefix
@primary_ssh_path_prefix ||= Gitlab::Geo.primary_node.clone_url_prefix
end
def log(message)
......
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