diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2020-11-13 14:36:03 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2020-11-17 02:00:24 +0300 |
commit | 6da7ee5a3db7e6511dcf7b794e161439805e22ff (patch) | |
tree | ec50a8e884aa73cf3e84ec265d0ba47b589254b6 /internal/praefect/auth_test.go | |
parent | 603fa1a86922896abd908465fccac078093adb7a (diff) |
Introduction of storages provider to get up to date storages
It is a next step in including cached storages provider in order to
support reads distribution across gitalies. On each invocation it
queries the passed in dependency and combine the result with existing
primary. The resulted list is used by the manager to decide where request
should be routed for processing. In a follow up MR it will be extended
with expiration cache to reduce load on database as accessing it on each
read operation is not efficient.
Part of: https://gitlab.com/gitlab-org/gitaly/-/issues/3053
Diffstat (limited to 'internal/praefect/auth_test.go')
-rw-r--r-- | internal/praefect/auth_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/auth_test.go b/internal/praefect/auth_test.go index 27d19de5d..ac73e07e3 100644 --- a/internal/praefect/auth_test.go +++ b/internal/praefect/auth_test.go @@ -169,7 +169,7 @@ func runServer(t *testing.T, token string, required bool) (*grpc.Server, string, queue := datastore.NewMemoryReplicationEventQueue(conf) rs := datastore.NewMemoryRepositoryStore(conf.StorageNames()) - nodeMgr, err := nodes.NewManager(logEntry, conf, nil, rs, promtest.NewMockHistogramVec(), protoregistry.GitalyProtoPreregistered, nil) + nodeMgr, err := nodes.NewManager(logEntry, conf, nil, rs, nil, promtest.NewMockHistogramVec(), protoregistry.GitalyProtoPreregistered, nil) require.NoError(t, err) txMgr := transactions.NewManager(conf) |