From f1aba67e55d19e1e2428e40262f44d8d616335cc Mon Sep 17 00:00:00 2001 From: Leufolium Date: Mon, 2 Sep 2024 18:37:31 +0800 Subject: [PATCH] 1 --- mongo/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mongo/client.go b/mongo/client.go index a283f7e..60867a5 100644 --- a/mongo/client.go +++ b/mongo/client.go @@ -13,7 +13,8 @@ var url = "mongodb://root:Wishpal2024@dds-bp1da1ddd62bede41.mongodb.rds.aliyuncs func NewMongoClient() (*qmgo.Client, error) { 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, ConnectTimeoutMS: goproto.Int64(30000), MaxPoolSize: goproto.Uint64(16), MinPoolSize: goproto.Uint64(0),