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