fix: mogodb url connent

This commit is contained in:
dong 2023-10-17 03:02:34 +00:00
parent 5b29273425
commit 8cfbecfa81

View File

@ -186,7 +186,7 @@ func checkMongo() error {
config.Config.Mongo.MaxPoolSize)
}
}
client, err := mongo.Connect(context.TODO(), options.Client().ApplyURI(uri)
client, err := mongo.Connect(context.TODO(), options.Client().ApplyURI(uri))
if err != nil {
return errs.Wrap(err)
} else {