debian-mirror-gitlab/lib/gitlab/gitaly_client/praefect_info_service.rb
2023-01-13 15:02:22 +05:30

23 lines
603 B
Ruby

# frozen_string_literal: true
module Gitlab
module GitalyClient
class PraefectInfoService
include WithFeatureFlagActors
def initialize(repository)
@repository = repository
@gitaly_repo = repository.gitaly_repository
@storage = repository.storage
self.repository_actor = repository
end
def replicas
request = Gitaly::RepositoryReplicasRequest.new(repository: @gitaly_repo)
gitaly_client_call(@storage, :praefect_info_service, :repository_replicas, request, timeout: GitalyClient.fast_timeout)
end
end
end
end