diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-04-29 08:43:33 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-04-29 08:43:33 +0300 |
commit | 890d01033ab17ea5a6208450ced595d12f4ce195 (patch) | |
tree | 36e0e6a7901ab66cc4c4aeecec07d05fc1eaeb13 /app.go | |
parent | 4ff61e374a7dbfa51fee91799f11197e0f8d53f7 (diff) |
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
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") } |