diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2021-01-19 18:35:20 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2021-01-19 18:35:20 +0300 |
commit | 760764bdf160002a12fdb39c2cbed362e28a6834 (patch) | |
tree | 46111f5ffd2a96872163b8b4f2ddac23e12fa6e3 /internal/praefect/replicator_test.go | |
parent | 6a06feda7fd01961bb332afce4d7f7b4ce4a5aad (diff) |
WithReceivePackHooks should use passed in parameter
WithReceivePackHooks should use a passed in parameter instead
the global config.Config var.
The configuration is passed over as a field dependency from the
"server"s down to the handler function.
Part of: https://gitlab.com/gitlab-org/gitaly/-/issues/2699
Diffstat (limited to 'internal/praefect/replicator_test.go')
-rw-r--r-- | internal/praefect/replicator_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/replicator_test.go b/internal/praefect/replicator_test.go index 4962090a0..f2ecc2c60 100644 --- a/internal/praefect/replicator_test.go +++ b/internal/praefect/replicator_test.go @@ -1035,7 +1035,7 @@ func newReplicationService(tb testing.TB) (*grpc.Server, string) { gitalypb.RegisterRepositoryServiceServer(svr, repository.NewServer(gitaly_config.Config, RubyServer, locator)) gitalypb.RegisterObjectPoolServiceServer(svr, objectpoolservice.NewServer(gitaly_config.Config, locator)) gitalypb.RegisterRemoteServiceServer(svr, remote.NewServer(gitaly_config.Config, RubyServer, locator)) - gitalypb.RegisterSSHServiceServer(svr, ssh.NewServer(locator)) + gitalypb.RegisterSSHServiceServer(svr, ssh.NewServer(gitaly_config.Config, locator)) gitalypb.RegisterRefServiceServer(svr, ref.NewServer(gitaly_config.Config, locator)) healthpb.RegisterHealthServer(svr, health.NewServer()) reflection.Register(svr) |