chore: move db connect under opts param

This commit is contained in:
Oskar 2021-09-02 22:44:23 +02:00 committed by GitHub
parent 4a4505c1f2
commit d728e96d82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,6 @@ func main() {
var wg sync.WaitGroup
mongo.Connect()
c := cmdOpts{}
opts.Parse(&c)
@ -88,6 +86,8 @@ func main() {
os.Exit(0)
}
}
mongo.Connect()
if config.Toml.AutoUpdate.Enabled {
wg.Add(1)