From c4b8e630dcca2387cc69a42ac28725d22cb14287 Mon Sep 17 00:00:00 2001 From: mklee Date: Mon, 23 Oct 2023 15:17:07 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=9D=B4=EB=AF=BC=EA=B6=8C]=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=EC=88=98=EC=A0=95?= 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 34310fd..77a2b69 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/mountain-maingate?replicaSet=rs0&retrywrites=true") + mongoClient, err := gocommon.NewMongoClient(context.Background(), "mongodb://121.134.91.160:27018/mountain-maingate?replicaSet=rs0&retrywrites=true", "maingate") if err != nil { t.Error(err) } diff --git a/core/maingate.go b/core/maingate.go index f5251f4..d168a6a 100644 --- a/core/maingate.go +++ b/core/maingate.go @@ -313,7 +313,7 @@ func (mg *Maingate) prepare(context context.Context) (err error) { } // redis에서 env를 가져온 후에 - mg.mongoClient, err = gocommon.NewMongoClient(context, mg.Mongo) + mg.mongoClient, err = gocommon.NewMongoClient(context, mg.Mongo, "maingate") if err != nil { return makeErrorWithStack(err) }