Fix unnecessarily connecting to DB after multi-user config

This commit is contained in:
Matt Baer 2018-11-10 20:43:00 -05:00
parent ae019e4dc3
commit 1cb593fd8c
1 changed files with 1 additions and 1 deletions

2
app.go
View File

@ -146,7 +146,7 @@ func Serve() {
log.Error("Unable to configure: %v", err)
os.Exit(1)
}
if d != nil {
if d.User != nil {
app.cfg = d.Config
connectToDatabase(app)
defer shutdown(app)