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:
authorPavlo Strokov <pstrokov@gitlab.com>2020-03-28 00:28:25 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2020-04-02 17:55:54 +0300
commitcc314adf47d3eed96d824f35ae601e891e2e70e2 (patch)
tree29aaf04e869e4299a0ccff12fe985ab7ece33c5d /internal/praefect/auth_test.go
parent61fa556719b444d8dacb4622555df97f6c69e2bc (diff)
Praefect: Postgres queue implementation in use
Implementation of the replication events queue now can be switched using `postgres_queue_enabled` between in-memory and Postgres. `Datastore` changed from interface to struct as there is no single struct implementation for it anymore. Closes: https://gitlab.com/gitlab-org/gitaly/-/issues/2166
Diffstat (limited to 'internal/praefect/auth_test.go')
-rw-r--r--internal/praefect/auth_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/praefect/auth_test.go b/internal/praefect/auth_test.go
index 3831b60f8..7fce795b2 100644
--- a/internal/praefect/auth_test.go
+++ b/internal/praefect/auth_test.go
@@ -189,8 +189,8 @@ func runServer(t *testing.T, token string, required bool) (*Server, string, func
}
logEntry := testhelper.DiscardTestEntry(t)
- ds := datastore.MemoryQueue{
- MemoryDatastore: datastore.NewInMemory(conf),
+ ds := datastore.Datastore{
+ ReplicasDatastore: datastore.NewInMemory(conf),
ReplicationEventQueue: datastore.NewMemoryReplicationEventQueue(),
}