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:
authorJohn Cai <jcai@gitlab.com>2021-12-10 22:32:22 +0300
committerJohn Cai <jcai@gitlab.com>2021-12-11 00:33:35 +0300
commitfef2131b1d0628a2ce2d245871920af44be24ec3 (patch)
tree4c5f526eae54423c2a6417ed650ee795a7181bf7 /internal
parent81a41a856adc5628a57e49503ca1a5498c915671 (diff)
praefect: change replication manager to use field logger
Passing in an interface makes for a more flexible signature and allows for easier testing with other code.
Diffstat (limited to 'internal')
-rw-r--r--internal/praefect/replicator.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/replicator.go b/internal/praefect/replicator.go
index e7425d1db..a9cf2de6c 100644
--- a/internal/praefect/replicator.go
+++ b/internal/praefect/replicator.go
@@ -440,7 +440,7 @@ func WithParallelStorageProcessingWorkers(n uint) func(*ReplMgr) {
// NewReplMgr initializes a replication manager with the provided dependencies
// and options
-func NewReplMgr(log *logrus.Entry, storageNames map[string][]string, queue datastore.ReplicationEventQueue, rs datastore.RepositoryStore, hc HealthChecker, nodes NodeSet, opts ...ReplMgrOpt) ReplMgr {
+func NewReplMgr(log logrus.FieldLogger, storageNames map[string][]string, queue datastore.ReplicationEventQueue, rs datastore.RepositoryStore, hc HealthChecker, nodes NodeSet, opts ...ReplMgrOpt) ReplMgr {
r := ReplMgr{
log: log.WithField("component", "replication_manager"),
queue: queue,