summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-06-20 17:31:49 +0200
committerJacob Vosmaer <jacob@gitlab.com>2017-06-20 17:31:49 +0200
commit4f8af50b619dd87c16035f56dce5cbde3531aef1 (patch)
tree0383d60713c8cf0ff73d341a3b089340d25924e5 /lib
parent7bda1030a59b0723eade42b03f72918a75c20e9d (diff)
downloadgitlab-ce-4f8af50b619dd87c16035f56dce5cbde3531aef1.tar.gz
Rubocop and comment fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/gitaly_client.rb4
-rw-r--r--lib/gitlab/workhorse.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/gitaly_client.rb b/lib/gitlab/gitaly_client.rb
index e30bcd7ae3a..f605c06dfc3 100644
--- a/lib/gitlab/gitaly_client.rb
+++ b/lib/gitlab/gitaly_client.rb
@@ -50,8 +50,8 @@ module Gitlab
address
end
- # All RPC calls should use GitalyClient.call. This method makes sure
- # that per-request authentication headers are set.
+ # All Gitaly RPC call sites should use GitalyClient.call. This method
+ # makes sure that per-request authentication headers are set.
def self.call(storage, service, rpc, request)
metadata = request_metadata(storage)
metadata = yield(metadata) if block_given?
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb
index 43305f63911..f96ee69096d 100644
--- a/lib/gitlab/workhorse.rb
+++ b/lib/gitlab/workhorse.rb
@@ -28,7 +28,7 @@ module Gitlab
if Gitlab.config.gitaly.enabled
server = {
address: Gitlab::GitalyClient.address(project.repository_storage),
- token: Gitlab::GitalyClient.token(project.repository_storage),
+ token: Gitlab::GitalyClient.token(project.repository_storage)
}
params[:Repository] = repository.gitaly_repository.to_h