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) }