From 2f8be414fd70a17000757bd31782e910dca85f90 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Fri, 13 Sep 2024 14:37:30 +0800 Subject: [PATCH] by Robin at 20240913 --- mongo/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mongo/client.go b/mongo/client.go index 60867a5..d91cc6b 100644 --- a/mongo/client.go +++ b/mongo/client.go @@ -13,8 +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: url, + Uri: "mongodb://admin:Wishpal%402023@172.31.37.71:27017", + //Uri: url, ConnectTimeoutMS: goproto.Int64(30000), MaxPoolSize: goproto.Uint64(16), MinPoolSize: goproto.Uint64(0),