Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-09-27 12:07:16 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-09-27 13:36:08 +0300
commit0a89a48ec93a6f9d52df719c82af5d765bb45d10 (patch)
tree135bc9d96ed38fcb68b997fea67966d4174676f1 /app.go
parentc98ee83c05ec2e0e7ff5e0076f5f7d3745af32bc (diff)
Create a factory method for Domains to handle mutex better
Diffstat (limited to 'app.go')
-rw-r--r--app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.go b/app.go
index 0d69ac79..67b94f2a 100644
--- a/app.go
+++ b/app.go
@@ -461,7 +461,7 @@ func (a *theApp) listenAdminHTTPS(wg *sync.WaitGroup) {
}
func runApp(config appConfig) {
- a := theApp{appConfig: config, domains: new(source.Domains)}
+ a := theApp{appConfig: config, domains: source.NewDomains()}
err := logging.ConfigureLogging(a.LogFormat, a.LogVerbose)
if err != nil {