Commit 19e73214 authored by Ash McKenzie's avatar Ash McKenzie

Move Geo proxying message closer

parent 7e676b3c
......@@ -76,7 +76,7 @@ module EE
end
def proxying_to_primary_message
::Gitlab::Geo::GitPushSSHProxy.inform_client_message(primary_ssh_url_to_repo)
"You're pushing to a Geo secondary.\nWe'll help you by proxying this request to the primary: #{primary_ssh_url_to_repo}"
end
def custom_action_api_endpoints
......
......@@ -50,10 +50,6 @@ module Gitlab
@data = data
end
def self.inform_client_message(primary_repo_ssh)
"You're pushing to a Geo secondary.\nWe'll help you by proxying this request to the primary: #{primary_repo_ssh}"
end
def info_refs
ensure_secondary!
......
......@@ -35,12 +35,6 @@ describe Gitlab::Geo::GitPushSSHProxy, :geo do
}
end
describe '.inform_client_message' do
it 'returns a message, with the ssh address' do
expect(described_class.inform_client_message(primary_repo_ssh)).to eql("You're pushing to a Geo secondary.\nWe'll help you by proxying this request to the primary: #{primary_repo_ssh}")
end
end
context 'instance methods' do
subject { described_class.new(data) }
......
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