debian-mirror-gitlab/lib/gitlab/gitaly_client/praefect_info_service.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
603 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
module Gitlab
module GitalyClient
class PraefectInfoService
2023-01-13 00:05:48 +05:30
include WithFeatureFlagActors
2020-04-22 19:07:51 +05:30
def initialize(repository)
@repository = repository
@gitaly_repo = repository.gitaly_repository
@storage = repository.storage
2023-01-13 00:05:48 +05:30
self.repository_actor = repository
2020-04-22 19:07:51 +05:30
end
def replicas
request = Gitaly::RepositoryReplicasRequest.new(repository: @gitaly_repo)
2023-01-13 00:05:48 +05:30
gitaly_client_call(@storage, :praefect_info_service, :repository_replicas, request, timeout: GitalyClient.fast_timeout)
2020-04-22 19:07:51 +05:30
end
end
end
end