Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
ca94d200
Commit
ca94d200
authored
Apr 04, 2017
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass GitalyAddress to workhorse
parent
c5dae616
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
lib/gitlab/workhorse.rb
lib/gitlab/workhorse.rb
+6
-1
spec/lib/gitlab/workhorse_spec.rb
spec/lib/gitlab/workhorse_spec.rb
+3
-1
No files found.
lib/gitlab/workhorse.rb
View file @
ca94d200
...
@@ -44,7 +44,12 @@ module Gitlab
...
@@ -44,7 +44,12 @@ module Gitlab
raise
"Unsupported action:
#{
action
}
"
raise
"Unsupported action:
#{
action
}
"
end
end
params
[
:GitalySocketPath
]
=
URI
(
address
).
path
if
feature_enabled
if
feature_enabled
params
[
:GitalyAddress
]
=
address
# TODO deprecate GitalySocketPath once GITLAB_WORKHORSE_VERSION points
# to a version that supports GitalyAddress.
params
[
:GitalySocketPath
]
=
URI
(
address
).
path
end
end
end
params
params
...
...
spec/lib/gitlab/workhorse_spec.rb
View file @
ca94d200
...
@@ -188,8 +188,10 @@ describe Gitlab::Workhorse, lib: true do
...
@@ -188,8 +188,10 @@ describe Gitlab::Workhorse, lib: true do
context
'when Gitaly is enabled'
do
context
'when Gitaly is enabled'
do
let
(
:gitaly_params
)
do
let
(
:gitaly_params
)
do
address
=
Gitlab
::
GitalyClient
.
get_address
(
'default'
)
{
{
GitalySocketPath
:
URI
(
Gitlab
::
GitalyClient
.
get_address
(
'default'
)).
path
,
GitalySocketPath
:
URI
(
address
).
path
,
GitalyAddress
:
address
,
}
}
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment