by Robin at 20240913
This commit is contained in:
parent
25e99d791f
commit
2f8be414fd
|
@ -13,8 +13,8 @@ var url = "mongodb://root:Wishpal2024@dds-bp1da1ddd62bede41.mongodb.rds.aliyuncs
|
||||||
|
|
||||||
func NewMongoClient() (*qmgo.Client, error) {
|
func NewMongoClient() (*qmgo.Client, error) {
|
||||||
clientCfg := &qmgo.Config{
|
clientCfg := &qmgo.Config{
|
||||||
//Uri: "mongodb://admin:Wishpal%402023@172.31.37.71:27017",
|
Uri: "mongodb://admin:Wishpal%402023@172.31.37.71:27017",
|
||||||
Uri: url,
|
//Uri: url,
|
||||||
ConnectTimeoutMS: goproto.Int64(30000),
|
ConnectTimeoutMS: goproto.Int64(30000),
|
||||||
MaxPoolSize: goproto.Uint64(16),
|
MaxPoolSize: goproto.Uint64(16),
|
||||||
MinPoolSize: goproto.Uint64(0),
|
MinPoolSize: goproto.Uint64(0),
|
||||||
|
|
Loading…
Reference in New Issue