This commit is contained in:
Leufolium 2023-12-24 22:26:09 +08:00
parent 31cdc3798b
commit fb0ab17ed2
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import (
func NewMongoClient() (*qmgo.Client, error) { func NewMongoClient() (*qmgo.Client, error) {
clientCfg := &qmgo.Config{ clientCfg := &qmgo.Config{
Uri: "mongodb://admin:Wishpal%402023@127.0.0.1:27017", Uri: "mongodb://root:Wishpal2024@dds-bp1628b447c242e41.mongodb.rds.aliyuncs.com:3717,dds-bp1628b447c242e42.mongodb.rds.aliyuncs.com:3717/admin?replicaSet=mgset-74245203",
ConnectTimeoutMS: goproto.Int64(30000), ConnectTimeoutMS: goproto.Int64(30000),
MaxPoolSize: goproto.Uint64(16), MaxPoolSize: goproto.Uint64(16),
MinPoolSize: goproto.Uint64(0), MinPoolSize: goproto.Uint64(0),