mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-01 07:35:58 +08:00
group update
This commit is contained in:
@@ -21,7 +21,7 @@ func NewMongoClient(mdb *mongo.Client) *Client {
|
||||
return &Client{mongo: mdb}
|
||||
}
|
||||
|
||||
func initMongo() *mongo.Database {
|
||||
func InitMongo() *mongo.Database {
|
||||
uri := "mongodb://sample.host:27017/?maxPoolSize=20&w=majority"
|
||||
if config.Config.Mongo.DBUri != "" {
|
||||
// example: mongodb://$user:$password@mongo1.mongo:27017,mongo2.mongo:27017,mongo3.mongo:27017/$DBDatabase/?replicaSet=rs0&readPreference=secondary&authSource=admin&maxPoolSize=$DBMaxPoolSize
|
||||
|
||||
Reference in New Issue
Block a user