Commit 209549c9 authored by Shinya Maeda's avatar Shinya Maeda

Revert iunnecessary change(gitaly)

parent 5b88bd81
...@@ -23,8 +23,7 @@ module Gitlab ...@@ -23,8 +23,7 @@ module Gitlab
klass = Gitaly.const_get(name.to_s.camelcase.to_sym).const_get(:Stub) klass = Gitaly.const_get(name.to_s.camelcase.to_sym).const_get(:Stub)
addr = address(storage) addr = address(storage)
addr = addr.sub(%r{^tcp://}, '') if URI(addr).scheme == 'tcp' addr = addr.sub(%r{^tcp://}, '') if URI(addr).scheme == 'tcp'
timeout = 10 if Rails.env.test? klass.new(addr, :this_channel_is_insecure)
klass.new(addr, :this_channel_is_insecure, timeout: timeout)
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