mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-11 15:32:25 +08:00
Merge remote-tracking branch 'upstream/main'
# Conflicts: # pkg/common/db/unrelation/mongo.go
This commit is contained in:
commit
843611759b
@ -46,7 +46,6 @@ func NewMongo() (*Mongo, error) {
|
||||
if config.Config.Mongo.URI != "" {
|
||||
uri = config.Config.Mongo.URI
|
||||
} else {
|
||||
// mongodb://mongodb1.example.com:27317,mongodb2.example.com:27017/?replicaSet=mySet&authSource=authDB
|
||||
mongodbHosts := ""
|
||||
for i, v := range config.Config.Mongo.Address {
|
||||
if i == len(config.Config.Mongo.Address)-1 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user