Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/service/register.go')
-rw-r--r--internal/service/register.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/service/register.go b/internal/service/register.go
index 4015f99fc..14fef4469 100644
--- a/internal/service/register.go
+++ b/internal/service/register.go
@@ -60,7 +60,7 @@ func RegisterAll(grpcServer *grpc.Server, cfg config.Cfg, rubyServer *rubyserver
gitalypb.RegisterNamespaceServiceServer(grpcServer, namespace.NewServer())
gitalypb.RegisterOperationServiceServer(grpcServer, operations.NewServer(rubyServer))
gitalypb.RegisterRefServiceServer(grpcServer, ref.NewServer())
- gitalypb.RegisterRepositoryServiceServer(grpcServer, repository.NewServer(rubyServer, config.GitalyInternalSocketPath()))
+ gitalypb.RegisterRepositoryServiceServer(grpcServer, repository.NewServer(rubyServer, cfg.Storages, config.GitalyInternalSocketPath()))
gitalypb.RegisterSSHServiceServer(grpcServer, ssh.NewServer(
ssh.WithPackfileNegotiationMetrics(sshPackfileNegotiationMetrics),
))
@@ -69,11 +69,11 @@ func RegisterAll(grpcServer *grpc.Server, cfg config.Cfg, rubyServer *rubyserver
))
gitalypb.RegisterWikiServiceServer(grpcServer, wiki.NewServer(rubyServer))
gitalypb.RegisterConflictsServiceServer(grpcServer, conflicts.NewServer(rubyServer))
- gitalypb.RegisterRemoteServiceServer(grpcServer, remote.NewServer(rubyServer))
+ gitalypb.RegisterRemoteServiceServer(grpcServer, remote.NewServer(rubyServer, cfg.Storages))
gitalypb.RegisterServerServiceServer(grpcServer, server.NewServer(cfg.Storages))
gitalypb.RegisterObjectPoolServiceServer(grpcServer, objectpool.NewServer())
gitalypb.RegisterHookServiceServer(grpcServer, hook.NewServer())
- gitalypb.RegisterInternalGitalyServer(grpcServer, internalgitaly.NewServer(config.Config.Storages))
+ gitalypb.RegisterInternalGitalyServer(grpcServer, internalgitaly.NewServer(cfg.Storages))
healthpb.RegisterHealthServer(grpcServer, health.NewServer())
}