From d1ff6a56fc15b66d298f455be511ba3af794a109 Mon Sep 17 00:00:00 2001 From: mountain Date: Thu, 21 Sep 2023 13:18:41 +0900 Subject: [PATCH] =?UTF-8?q?gocommon=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= =?UTF-8?q?=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/api_test.go | 2 +- core/maingate.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/api_test.go b/core/api_test.go index a0f883b..34310fd 100644 --- a/core/api_test.go +++ b/core/api_test.go @@ -21,7 +21,7 @@ func TestMakeLocalUniqueId(t *testing.T) { fmt.Println(start.Time().Format(time.RFC3339)) fmt.Println(end.Time().Format(time.RFC3339)) - mongoClient, err := gocommon.NewMongoClient(context.Background(), "mongodb://121.134.91.160:27018/?replicaSet=rs0&retrywrites=true", "mountain-maingate") + mongoClient, err := gocommon.NewMongoClient(context.Background(), "mongodb://121.134.91.160:27018/mountain-maingate?replicaSet=rs0&retrywrites=true") if err != nil { t.Error(err) } diff --git a/core/maingate.go b/core/maingate.go index b5ab795..56ef3f8 100644 --- a/core/maingate.go +++ b/core/maingate.go @@ -300,7 +300,7 @@ func (mg *Maingate) prepare(context context.Context) (err error) { } // redis에서 env를 가져온 후에 - mg.mongoClient, err = gocommon.NewMongoClient(context, mg.Mongo, "maingate") + mg.mongoClient, err = gocommon.NewMongoClient(context, mg.Mongo) if err != nil { return makeErrorWithStack(err) }