diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-07-09 13:02:02 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-07-09 13:02:02 +0300 |
commit | 3082b7d1c2524845441a529fd0704607cf2e8cb1 (patch) | |
tree | b9331dbb9018f6a42dc7ca2014e5524b94b6449e /lib/gitlab/workhorse.rb | |
parent | 090f4d9e9f409c76bd5a8738a1b39b1366845590 (diff) |
Make blob and other RPC's mandatory
Diffstat (limited to 'lib/gitlab/workhorse.rb')
-rw-r--r-- | lib/gitlab/workhorse.rb | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb index 79483ee05f8..55c899912f9 100644 --- a/lib/gitlab/workhorse.rb +++ b/lib/gitlab/workhorse.rb @@ -37,21 +37,14 @@ module Gitlab end def send_git_blob(repository, blob) - params = if Gitlab::GitalyClient.feature_enabled?(:workhorse_raw_show, status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) - { - 'GitalyServer' => gitaly_server_hash(repository), - 'GetBlobRequest' => { - repository: repository.gitaly_repository.to_h, - oid: blob.id, - limit: -1 - } - } - else - { - 'RepoPath' => repository.path_to_repo, - 'BlobId' => blob.id - } - end + params = { + 'GitalyServer' => gitaly_server_hash(repository), + 'GetBlobRequest' => { + repository: repository.gitaly_repository.to_h, + oid: blob.id, + limit: -1 + } + } [ SEND_DATA_HEADER, |