From 890d01033ab17ea5a6208450ced595d12f4ce195 Mon Sep 17 00:00:00 2001 From: Jaime Martinez Date: Thu, 29 Apr 2021 15:43:33 +1000 Subject: Use config package in GitLab client Uses the `internal/config/` client inside the `internal/source/gitlab/` package which makes it easier to extend the configuration. This is an iteration of https://gitlab.com/gitlab-org/gitlab-pages/-/issues/543. Changelog: other --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app.go') diff --git a/app.go b/app.go index c5555fc0..bd4fe4e6 100644 --- a/app.go +++ b/app.go @@ -491,7 +491,7 @@ func (a *theApp) listenMetricsFD(wg *sync.WaitGroup, fd uintptr) { } func runApp(config *cfg.Config) { - domains, err := source.NewDomains(config) + domains, err := source.NewDomains(config.General.DomainConfigurationSource, &config.GitLab) if err != nil { log.WithError(err).Fatal("could not create domains config source") } -- cgit v1.2.3