mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-10 23:07:30 +08:00
fix: mogodb url connent
This commit is contained in:
parent
5b29273425
commit
8cfbecfa81
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user